Rev 8: Flush pending updates at the end of _insert_record_stream in http://people.ubuntu.com/~robertc/baz2.0/plugins/groupcompress/trunk

Robert Collins robertc at robertcollins.net
Tue Jul 15 12:27:23 BST 2008


At http://people.ubuntu.com/~robertc/baz2.0/plugins/groupcompress/trunk

------------------------------------------------------------
revno: 8
revision-id: robertc at robertcollins.net-20080715112717-44vwju2fw9wph4s8
parent: robertc at robertcollins.net-20080715092509-ihjuvbfsgo74q82e
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Tue 2008-07-15 21:27:17 +1000
message:
  Flush pending updates at the end of _insert_record_stream
modified:
  groupcompress.py               groupcompress.py-20080705181503-ccbxd6xuy1bdnrpu-8
=== modified file 'groupcompress.py'
--- a/groupcompress.py	2008-07-15 09:25:09 +0000
+++ b/groupcompress.py	2008-07-15 11:27:17 +0000
@@ -513,6 +513,8 @@
                 keys_to_add = []
                 basis_end = 0
                 groups += 1
+        if len(keys_to_add):
+            flush()
 
     def iter_lines_added_or_present_in_keys(self, keys, pb=None):
         """Iterate over the lines in the versioned files from keys.




More information about the bazaar-commits mailing list