Rev 85: If you are going to join the bytes anyway, use sha_string instead of sha_strings. in http://bazaar.launchpad.net/%7Ebzr/bzr-groupcompress/rabin
John Arbash Meinel
john at arbash-meinel.com
Tue Mar 3 14:48:45 GMT 2009
At http://bazaar.launchpad.net/%7Ebzr/bzr-groupcompress/rabin
------------------------------------------------------------
revno: 85
revision-id: john at arbash-meinel.com-20090303144815-zdo0ak0vjclvx6y3
parent: john at arbash-meinel.com-20090303141551-qhokyhnloc1qsznh
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: rabin
timestamp: Tue 2009-03-03 08:48:15 -0600
message:
If you are going to join the bytes anyway, use sha_string instead of sha_strings.
-------------- next part --------------
=== modified file 'groupcompress.py'
--- a/groupcompress.py 2009-03-03 02:16:38 +0000
+++ b/groupcompress.py 2009-03-03 14:48:15 +0000
@@ -149,11 +149,11 @@
:return: The sha1 of lines, and the number of bytes accumulated in
the group output so far.
"""
- sha1 = sha_strings(chunks)
+ target_text = ''.join(chunks)
+ sha1 = sha_string(target_text)
if key[-1] is None:
key = key[:-1] + ('sha1:' + sha1,)
label = '\x00'.join(key)
- target_text = ''.join(chunks)
input_len = len(target_text)
# By having action/label/sha1/len, we can parse the group if the index
# was ever destroyed, we have the key in 'label', we know the final
More information about the bazaar-commits
mailing list