[MERGE] Fix off-by-one in check

Robert Collins robertc at robertcollins.net
Wed Aug 22 08:54:28 BST 2007


=== modified file 'bzrlib/check.py'
--- bzrlib/check.py     2006-10-11 23:08:27 +0000
+++ bzrlib/check.py     2007-08-01 04:26:35 +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):

Pretty much a no-brainer.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070822/a4180a94/attachment.pgp 


More information about the bazaar mailing list