50
50
from bzrlib.repofmt.pack_repo import (
51
51
CHKInventoryRepository,
52
RepositoryFormatPackDevelopment4,
53
RepositoryFormatPackDevelopment4Subtree,
52
RepositoryFormatPackDevelopment5,
53
RepositoryFormatPackDevelopment5Hash16,
54
RepositoryFormatPackDevelopment5Hash255,
56
57
except ImportError:
411
412
", interoperates with pack-0.92-subtrees\n")
414
'Bazaar development format - 1.9+gc (needs bzr.dev from 1.9)\n',
415
class RepositoryFormatPackGCPlainCHK(RepositoryFormatPackDevelopment4):
415
class RepositoryFormatPackGCPlainCHK(RepositoryFormatPackDevelopment5):
416
416
"""A CHK+group compress pack repository."""
418
418
repository_class = GCCHKPackRepository
420
420
def get_format_string(self):
421
421
"""See RepositoryFormat.get_format_string()."""
422
return ('Bazaar development format - chk+gc '
423
'(needs bzr.dev from 1.12)\n')
425
def get_format_description(self):
426
"""See RepositoryFormat.get_format_description()."""
427
return ("Development repository format - chk+groupcompress "
428
", interoperates with pack-0.92\n")
422
return ('Bazaar development format - chk+gc'
423
' (needs bzr.dev from 1.13)\n')
425
def get_format_description(self):
426
"""See RepositoryFormat.get_format_description()."""
427
return ("Development repository format - chk+groupcompress")
430
class RepositoryFormatPackGCPlainCHK16(RepositoryFormatPackDevelopment5Hash16):
431
"""A hashed CHK+group compress pack repository."""
433
repository_class = GCCHKPackRepository
435
def get_format_string(self):
436
"""See RepositoryFormat.get_format_string()."""
437
return ('Bazaar development format - hash16chk+gc'
438
' (needs bzr.dev from 1.13)\n')
440
def get_format_description(self):
441
"""See RepositoryFormat.get_format_description()."""
442
return ("Development repository format - hash16chk+groupcompress")
445
class RepositoryFormatPackGCPlainCHK255(RepositoryFormatPackDevelopment5Hash255):
446
"""A hashed CHK+group compress pack repository."""
448
repository_class = GCCHKPackRepository
450
def get_format_string(self):
451
"""See RepositoryFormat.get_format_string()."""
452
return ('Bazaar development format - hash255chk+gc'
453
' (needs bzr.dev from 1.13)\n')
455
def get_format_description(self):
456
"""See RepositoryFormat.get_format_description()."""
457
return ("Development repository format - hash255chk+groupcompress")
431
460
def pack_incompatible(source, target, orig_method=InterPackRepo.is_compatible):
433
462
formats = (RepositoryFormatPackGCPlain, RepositoryFormatPackGCRichRoot,
434
463
RepositoryFormatPackGCSubtrees)
436
formats = formats + (RepositoryFormatPackGCPlainCHK,)
465
formats = formats + (RepositoryFormatPackGCPlainCHK,
466
RepositoryFormatPackGCPlainCHK16,
467
RepositoryFormatPackGCPlainCHK255)
437
468
if isinstance(source._format, formats) or isinstance(target._format, formats):