Rev 3892: There was a test that asserted we called pb.update() with the last revision. in http://bzr.arbash-meinel.com/branches/bzr/1.11/differ_serializer

John Arbash Meinel john at arbash-meinel.com
Wed Dec 10 04:34:45 GMT 2008


At http://bzr.arbash-meinel.com/branches/bzr/1.11/differ_serializer

------------------------------------------------------------
revno: 3892
revision-id: john at arbash-meinel.com-20081210043421-2uaz4mfuzw3ca5jz
parent: john at arbash-meinel.com-20081210032133-2mxcpa2p81kbpi5c
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: differ_serializer
timestamp: Tue 2008-12-09 22:34:21 -0600
message:
  There was a test that asserted we called pb.update() with the last revision.
-------------- next part --------------
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2008-12-10 00:10:00 +0000
+++ b/bzrlib/repository.py	2008-12-10 04:34:21 +0000
@@ -3247,7 +3247,7 @@
             self.target.start_write_group()
             try:
                 pb.update('Transferring revisions', offset,
-                    len(revision_ids))
+                          len(revision_ids))
                 batch = revision_ids[offset:offset+batch_size]
                 basis_id, basis_tree = self._fetch_batch(batch,
                     basis_id, basis_tree)
@@ -3256,6 +3256,8 @@
                 raise
             else:
                 self.target.commit_write_group()
+        pb.update('Transferring revisions', len(revision_ids),
+                  len(revision_ids))
 
     @needs_write_lock
     def fetch(self, revision_id=None, pb=None, find_ghosts=False):



More information about the bazaar-commits mailing list