Rev 34: Start putting together a GroupCompress format that is built on dev5 in http://bazaar.launchpad.net/%7Ejameinel/bzr-groupcompress/dev5
John Arbash Meinel
john at arbash-meinel.com
Tue Feb 17 19:36:05 GMT 2009
At http://bazaar.launchpad.net/%7Ejameinel/bzr-groupcompress/dev5
------------------------------------------------------------
revno: 34
revision-id: john at arbash-meinel.com-20090217193538-ebm4wxqg10lkapyp
parent: john at arbash-meinel.com-20090213220603-5d2k6544y55dd6bi
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: dev5
timestamp: Tue 2009-02-17 13:35:38 -0600
message:
Start putting together a GroupCompress format that is built on dev5
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py 2009-02-13 21:57:21 +0000
+++ b/__init__.py 2009-02-17 19:35:38 +0000
@@ -110,6 +110,22 @@
'bzrlib.plugins.groupcompress.repofmt',
'RepositoryFormatPackGCPlainCHK16',
)
+ format_registry.register_metadir('gc-plain-chk255',
+ 'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCPlainCHK255',
+ help='pack-1.9 with 255-way hashed CHK inv and group compress. '
+ 'Please read '
+ 'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
+ 'before use.',
+ branch_format='bzrlib.branch.BzrBranchFormat7',
+ tree_format='bzrlib.workingtree.WorkingTreeFormat5',
+ hidden=False,
+ experimental=True,
+ )
+ repo_registry.register_lazy(
+ 'Bazaar development format - hash255chk+gc (needs bzr.dev from 1.13)\n',
+ 'bzrlib.plugins.groupcompress.repofmt',
+ 'RepositoryFormatPackGCPlainCHK255',
+ )
except ImportError:
pass
=== modified file 'repofmt.py'
--- a/repofmt.py 2009-02-13 22:06:03 +0000
+++ b/repofmt.py 2009-02-17 19:35:38 +0000
@@ -51,6 +51,7 @@
CHKInventoryRepository,
RepositoryFormatPackDevelopment5,
RepositoryFormatPackDevelopment5Hash16,
+ RepositoryFormatPackDevelopment5Hash255,
)
chk_support = True
except ImportError:
@@ -441,13 +442,29 @@
return ("Development repository format - hash16chk+groupcompress")
+ class RepositoryFormatPackGCPlainCHK255(RepositoryFormatPackDevelopment5Hash255):
+ """A hashed CHK+group compress pack repository."""
+
+ repository_class = GCCHKPackRepository
+
+ def get_format_string(self):
+ """See RepositoryFormat.get_format_string()."""
+ return ('Bazaar development format - hash255chk+gc'
+ ' (needs bzr.dev from 1.13)\n')
+
+ def get_format_description(self):
+ """See RepositoryFormat.get_format_description()."""
+ return ("Development repository format - hash255chk+groupcompress")
+
+
def pack_incompatible(source, target, orig_method=InterPackRepo.is_compatible):
"""Be incompatible with the regular fetch code."""
formats = (RepositoryFormatPackGCPlain, RepositoryFormatPackGCRichRoot,
RepositoryFormatPackGCSubtrees)
if chk_support:
formats = formats + (RepositoryFormatPackGCPlainCHK,
- RepositoryFormatPackGCPlainCHK16)
+ RepositoryFormatPackGCPlainCHK16,
+ RepositoryFormatPackGCPlainCHK255)
if isinstance(source._format, formats) or isinstance(target._format, formats):
return False
else:
More information about the bazaar-commits
mailing list