Rev 26: Add support for GroupCompress Rabin in http://bazaar.launchpad.net/%7Ebzr/bzr-repodetails/trunk
John Arbash Meinel
john at arbash-meinel.com
Tue Mar 3 02:24:48 GMT 2009
At http://bazaar.launchpad.net/%7Ebzr/bzr-repodetails/trunk
------------------------------------------------------------
revno: 26
revision-id: john at arbash-meinel.com-20090303022358-osx2o88n8uqw7g5q
parent: john at arbash-meinel.com-20090219173714-ztn05oosmgkgs9j3
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: trunk
timestamp: Mon 2009-03-02 20:23:58 -0600
message:
Add support for GroupCompress Rabin
-------------- next part --------------
=== modified file 'gather_stats.py'
--- a/gather_stats.py 2009-02-19 17:37:14 +0000
+++ b/gather_stats.py 2009-03-03 02:23:58 +0000
@@ -51,6 +51,10 @@
'RepositoryFormatPackDevelopment5',
'RepositoryFormatPackDevelopment5Subtree',
'RepositoryFormatPackDevelopment5Hash16',
+ 'RepositoryFormatPackDevelopment5Hash16b',
+ 'RepositoryFormatPackDevelopment5Hash63',
+ 'RepositoryFormatPackDevelopment5Hash127a',
+ 'RepositoryFormatPackDevelopment5Hash127b',
'RepositoryFormatPackDevelopment5Hash255',
]
pack_chk_inv_types = []
@@ -64,6 +68,13 @@
gc_support = True
except:
gc_support = False
+try:
+ from bzrlib.plugins.groupcompress_rabin.groupcompress import (
+ GroupCompressVersionedFiles as GCRVF
+ )
+ gcr_support = True
+except:
+ gcr_support = False
from bzrlib.repofmt.pack_repo import (
RepositoryFormatKnitPack1,
RepositoryFormatKnitPack3,
@@ -180,7 +191,8 @@
objectstats.objects += len(keys)
# XXX: Doesn't consider duplicate-in-separate-packs overhead.
details = vf._index.get_build_details(keys)
- if gc_support and isinstance(vf, GroupCompressVersionedFiles):
+ if (gc_support and isinstance(vf, GroupCompressVersionedFiles)
+ or gcr_support and isinstance(vf, GCRVF)):
# extract the size of the data that gc will need to read
memos = set()
# collect all the groups
More information about the bazaar-commits
mailing list