/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 breezy/repofmt/groupcompress_repo.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import time
22
22
 
23
 
from bzrlib import (
 
23
from breezy import (
24
24
    controldir,
25
25
    chk_map,
26
26
    chk_serializer,
35
35
    ui,
36
36
    versionedfile,
37
37
    )
38
 
from bzrlib.btree_index import (
 
38
from breezy.btree_index import (
39
39
    BTreeGraphIndex,
40
40
    BTreeBuilder,
41
41
    )
42
 
from bzrlib.decorators import needs_write_lock
43
 
from bzrlib.groupcompress import (
 
42
from breezy.decorators import needs_write_lock
 
43
from breezy.groupcompress import (
44
44
    _GCGraphIndex,
45
45
    GroupCompressVersionedFiles,
46
46
    )
47
 
from bzrlib.repofmt.pack_repo import (
 
47
from breezy.repofmt.pack_repo import (
48
48
    _DirectPackAccess,
49
49
    Pack,
50
50
    NewPack,
55
55
    ResumedPack,
56
56
    Packer,
57
57
    )
58
 
from bzrlib.vf_repository import (
 
58
from breezy.vf_repository import (
59
59
    StreamSource,
60
60
    )
61
 
from bzrlib.static_tuple import StaticTuple
 
61
from breezy.static_tuple import StaticTuple
62
62
 
63
63
 
64
64
class GCPack(NewPack):
514
514
class GCCHKReconcilePacker(GCCHKPacker):
515
515
    """A packer which regenerates indices etc as it copies.
516
516
 
517
 
    This is used by ``bzr reconcile`` to cause parent text pointers to be
 
517
    This is used by ``brz reconcile`` to cause parent text pointers to be
518
518
    regenerated.
519
519
    """
520
520
 
760
760
        if missing_chk_roots:
761
761
            problems.append(
762
762
                "missing referenced chk root keys: %s."
763
 
                "Run 'bzr reconcile --canonicalize-chks' on the affected "
 
763
                "Run 'brz reconcile --canonicalize-chks' on the affected "
764
764
                "repository."
765
765
                % (sorted(missing_chk_roots),))
766
766
            # Don't bother checking any further.
1095
1095
        """Reconcile this repository to make sure all CHKs are in canonical
1096
1096
        form.
1097
1097
        """
1098
 
        from bzrlib.reconcile import PackReconciler
 
1098
        from breezy.reconcile import PackReconciler
1099
1099
        reconciler = PackReconciler(self, thorough=True, canonicalize_chks=True)
1100
1100
        reconciler.reconcile()
1101
1101
        return reconciler