Rev 2747: Fix an off-by-one in check.py that leads to the progress bar showing in http://people.ubuntu.com/~robertc/baz2.0/misc-fixen

Robert Collins robertc at robertcollins.net
Wed Aug 22 23:33:10 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/misc-fixen

------------------------------------------------------------
revno: 2747
revision-id: robertc at robertcollins.net-20070822223223-0heetwybcuonp00g
parent: robertc at robertcollins.net-20070822223112-e2qgp43wu1ut5u8l
committer: Robert Collins <robertc at robertcollins.net>
branch nick: misc-fixen
timestamp: Thu 2007-08-23 08:32:23 +1000
message:
  Fix an off-by-one in check.py that leads to the progress bar showing
  complete for a phase but not actually being complete; if the last file id
  checked is big this is confusing. (Robert Collins)
modified:
  bzrlib/check.py                check.py-20050309040759-f3a679400c06bcc1
=== modified file 'bzrlib/check.py'
--- a/bzrlib/check.py	2006-10-11 23:08:27 +0000
+++ b/bzrlib/check.py	2007-08-22 22:32:23 +0000
@@ -156,7 +156,7 @@
         weave_ids = []
         if self.repository.weave_store.listable():
             weave_ids = list(self.repository.weave_store)
-            n_weaves = len(weave_ids)
+            n_weaves = len(weave_ids) + 1
         self.progress.update('checking weave', 0, n_weaves)
         self.inventory_weave.check(progress_bar=self.progress)
         for i, weave_id in enumerate(weave_ids):



More information about the bazaar-commits mailing list