51
51
CHKInventoryRepository,
52
52
RepositoryFormatPackDevelopment5,
53
53
RepositoryFormatPackDevelopment5Hash16,
54
## RepositoryFormatPackDevelopment5Hash16b,
55
## RepositoryFormatPackDevelopment5Hash63,
56
## RepositoryFormatPackDevelopment5Hash127a,
57
## RepositoryFormatPackDevelopment5Hash127b,
54
58
RepositoryFormatPackDevelopment5Hash255,
260
264
('text_index', 'texts'),
261
265
('signature_index', 'signatures'),
267
# TODO: This is a very non-optimal ordering for chk_bytes. The
268
# issue is that pages that are similar are not transmitted
269
# together. Perhaps get_record_stream('gc-optimal') should be
270
# taught about how to group chk pages?
263
271
if getattr(self, 'chk_index', None) is not None:
264
272
to_copy.insert(2, ('chk_index', 'chk_bytes'))
521
529
return ("Development repository format - hash16chk+groupcompress")
532
## class RepositoryFormatPackGCPlainCHK16b(RepositoryFormatPackDevelopment5Hash16b):
533
## """A hashed CHK+group compress pack repository."""
535
## repository_class = GCCHKPackRepository
537
## def get_format_string(self):
538
## """See RepositoryFormat.get_format_string()."""
539
## return ('Bazaar development format - hash16bchk+gc'
540
## ' (needs bzr.dev from 1.13)\n')
542
## def get_format_description(self):
543
## """See RepositoryFormat.get_format_description()."""
544
## return ("Development repository format - hash16bchk+groupcompress")
547
## class RepositoryFormatPackGCPlainCHK63(RepositoryFormatPackDevelopment5Hash63):
548
## """A hashed CHK+group compress pack repository."""
550
## repository_class = GCCHKPackRepository
552
## def get_format_string(self):
553
## """See RepositoryFormat.get_format_string()."""
554
## return ('Bazaar development format - hash63+gc'
555
## ' (needs bzr.dev from 1.13)\n')
557
## def get_format_description(self):
558
## """See RepositoryFormat.get_format_description()."""
559
## return ("Development repository format - hash63+groupcompress")
562
## class RepositoryFormatPackGCPlainCHK127a(RepositoryFormatPackDevelopment5Hash127a):
563
## """A hashed CHK+group compress pack repository."""
565
## repository_class = GCCHKPackRepository
567
## def get_format_string(self):
568
## """See RepositoryFormat.get_format_string()."""
569
## return ('Bazaar development format - hash127a+gc'
570
## ' (needs bzr.dev from 1.13)\n')
572
## def get_format_description(self):
573
## """See RepositoryFormat.get_format_description()."""
574
## return ("Development repository format - hash127a+groupcompress")
577
## class RepositoryFormatPackGCPlainCHK127b(RepositoryFormatPackDevelopment5Hash127b):
578
## """A hashed CHK+group compress pack repository."""
580
## repository_class = GCCHKPackRepository
582
## def get_format_string(self):
583
## """See RepositoryFormat.get_format_string()."""
584
## return ('Bazaar development format - hash127b+gc'
585
## ' (needs bzr.dev from 1.13)\n')
587
## def get_format_description(self):
588
## """See RepositoryFormat.get_format_description()."""
589
## return ("Development repository format - hash127b+groupcompress")
524
592
class RepositoryFormatPackGCPlainCHK255(RepositoryFormatPackDevelopment5Hash255):
525
593
"""A hashed CHK+group compress pack repository."""
544
612
formats = formats + (RepositoryFormatPackGCPlainCHK,
545
613
RepositoryFormatPackGCPlainCHK16,
614
## RepositoryFormatPackGCPlainCHK16b,
615
## RepositoryFormatPackGCPlainCHK63,
616
## RepositoryFormatPackGCPlainCHK127a,
617
## RepositoryFormatPackGCPlainCHK127b,
546
618
RepositoryFormatPackGCPlainCHK255)
547
619
if isinstance(source._format, formats) or isinstance(target._format, formats):