[Pkg-bazaar-commits] ./bzr/unstable r248: - Better progress and completion indicator from check command
mbp at sourcefrog.net
mbp at sourcefrog.net
Fri Apr 10 07:43:57 UTC 2009
------------------------------------------------------------
revno: 248
committer: mbp at sourcefrog.net
timestamp: Wed 2005-04-13 14:56:45 +1000
message:
- Better progress and completion indicator from check command
modified:
bzrlib/check.py
-------------- next part --------------
=== modified file 'bzrlib/check.py'
--- a/bzrlib/check.py 2005-04-06 14:06:32 +0000
+++ b/bzrlib/check.py 2005-04-13 04:56:45 +0000
@@ -30,6 +30,10 @@
def check(branch, progress=True):
out = sys.stdout
+ # TODO: factor out
+ if not (hasattr(out, 'isatty') and out.isatty()):
+ progress=False
+
if progress:
def p(m):
mutter('checking ' + m)
@@ -120,5 +124,5 @@
p('done')
if progress:
print
-
+ print 'checked %d revisions, %d file texts' % (revcount, len(checked_texts))
More information about the Pkg-bazaar-commits
mailing list