1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 06:34:16 +00:00

update compare output

This commit is contained in:
deadc0de6
2019-01-17 15:54:46 +01:00
parent 7f6ab70b3b
commit 6d4526f57e
2 changed files with 13 additions and 8 deletions

View File

@@ -56,11 +56,11 @@ class Comparator:
for i in comp.left_only:
if self._ignore([os.path.join(left, i)], ignore):
continue
ret.append('only in left: \"{}\"\n'.format(i))
ret.append('=> \"{}\" does not exist on local\n'.format(i))
for i in comp.right_only:
if self._ignore([os.path.join(right, i)], ignore):
continue
ret.append('only in right: \"{}\"\n'.format(i))
ret.append('=> \"{}\" does not exist in dotdrop\n'.format(i))
# same left and right but different type
funny = comp.common_funny
@@ -90,7 +90,7 @@ class Comparator:
if header:
lshort = os.path.basename(left)
rshort = os.path.basename(right)
diff = 'diff \"{}\":\n{}'.format(lshort, diff)
diff = '=> diff \"{}\":\n{}'.format(lshort, diff)
return diff
def _ignore(self, paths, ignore):