Skip to content

Commit 75a3b3f

Browse files
committed
filter-repo: format ending logs a bit
- Make WARNING and ERROR stand out more - Wrap output path quotes for consintency with prev logs - Add an space between output dir and "done" (making it control+click-able) Signed-off-by: Diego Mateos <[email protected]>
1 parent cd55f91 commit 75a3b3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: git-filter-repo

+4-4
Original file line numberDiff line numberDiff line change
@@ -2903,10 +2903,10 @@ class RepoAnalyze(object):
29032903

29042904
if os.path.isdir(reportdir):
29052905
if args.force:
2906-
sys.stdout.write(_("Warning: Removing recursively: \"%s\"\n") % decode(reportdir))
2906+
sys.stdout.write(_("WARNING: Removing recursively: \"%s\"\n") % decode(reportdir))
29072907
shutil.rmtree(reportdir)
29082908
else:
2909-
sys.stdout.write(_("Error: dir already exists (use --force to delete): \"%s\"\n") % decode(reportdir))
2909+
sys.stdout.write(_("ERROR: dir already exists (use --force to delete): \"%s\"\n") % decode(reportdir))
29102910
sys.exit(1)
29112911

29122912
os.mkdir(reportdir)
@@ -2915,10 +2915,10 @@ class RepoAnalyze(object):
29152915
stats = RepoAnalyze.gather_data(args)
29162916

29172917
# Write the reports
2918-
sys.stdout.write(_("Writing reports to %s...") % decode(reportdir))
2918+
sys.stdout.write(_("Writing reports to \"%s\"...") % decode(reportdir))
29192919
sys.stdout.flush()
29202920
RepoAnalyze.write_report(reportdir, stats)
2921-
sys.stdout.write(_("done.\n"))
2921+
sys.stdout.write(_(" done.\n"))
29222922
sys.stdout.write(_("README: \"%s\"\n") % decode( os.path.join(reportdir, b"README") ))
29232923

29242924
class FileInfoValueHelper:

0 commit comments

Comments
 (0)