/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to repofmt.py

  • Committer: John Arbash Meinel
  • Date: 2009-02-26 21:59:37 UTC
  • mto: (0.20.21 trunk)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090226215937-4n69g2lfbjm3yyip
Play with some experimental alternate hashes, comment them out for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    CHKInventoryRepository,
52
52
    RepositoryFormatPackDevelopment5,
53
53
    RepositoryFormatPackDevelopment5Hash16,
 
54
##    RepositoryFormatPackDevelopment5Hash16b,
 
55
##    RepositoryFormatPackDevelopment5Hash63,
 
56
##    RepositoryFormatPackDevelopment5Hash127a,
 
57
##    RepositoryFormatPackDevelopment5Hash127b,
54
58
    RepositoryFormatPackDevelopment5Hash255,
55
59
    )
56
60
    chk_support = True
260
264
                       ('text_index', 'texts'),
261
265
                       ('signature_index', 'signatures'),
262
266
                      ]
 
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'))
265
273
 
521
529
            return ("Development repository format - hash16chk+groupcompress")
522
530
 
523
531
 
 
532
##    class RepositoryFormatPackGCPlainCHK16b(RepositoryFormatPackDevelopment5Hash16b):
 
533
##        """A hashed CHK+group compress pack repository."""
 
534
##
 
535
##        repository_class = GCCHKPackRepository
 
536
##
 
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')
 
541
##
 
542
##        def get_format_description(self):
 
543
##            """See RepositoryFormat.get_format_description()."""
 
544
##            return ("Development repository format - hash16bchk+groupcompress")
 
545
##
 
546
##
 
547
##    class RepositoryFormatPackGCPlainCHK63(RepositoryFormatPackDevelopment5Hash63):
 
548
##        """A hashed CHK+group compress pack repository."""
 
549
##
 
550
##        repository_class = GCCHKPackRepository
 
551
##
 
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')
 
556
##
 
557
##        def get_format_description(self):
 
558
##            """See RepositoryFormat.get_format_description()."""
 
559
##            return ("Development repository format - hash63+groupcompress")
 
560
##
 
561
##
 
562
##    class RepositoryFormatPackGCPlainCHK127a(RepositoryFormatPackDevelopment5Hash127a):
 
563
##        """A hashed CHK+group compress pack repository."""
 
564
##
 
565
##        repository_class = GCCHKPackRepository
 
566
##
 
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')
 
571
##
 
572
##        def get_format_description(self):
 
573
##            """See RepositoryFormat.get_format_description()."""
 
574
##            return ("Development repository format - hash127a+groupcompress")
 
575
##
 
576
##
 
577
##    class RepositoryFormatPackGCPlainCHK127b(RepositoryFormatPackDevelopment5Hash127b):
 
578
##        """A hashed CHK+group compress pack repository."""
 
579
##
 
580
##        repository_class = GCCHKPackRepository
 
581
##
 
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')
 
586
##
 
587
##        def get_format_description(self):
 
588
##            """See RepositoryFormat.get_format_description()."""
 
589
##            return ("Development repository format - hash127b+groupcompress")
 
590
 
 
591
 
524
592
    class RepositoryFormatPackGCPlainCHK255(RepositoryFormatPackDevelopment5Hash255):
525
593
        """A hashed CHK+group compress pack repository."""
526
594
 
543
611
    if chk_support:
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):
548
620
        return False