/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/revisionspec.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
from __future__ import absolute_import
18
18
 
19
19
 
20
 
from brzlib.lazy_import import lazy_import
 
20
from breezy.lazy_import import lazy_import
21
21
lazy_import(globals(), """
22
22
import bisect
23
23
import datetime
24
24
 
25
 
from brzlib import (
 
25
from breezy import (
26
26
    branch as _mod_branch,
27
27
    osutils,
28
28
    revision,
29
29
    symbol_versioning,
30
30
    workingtree,
31
31
    )
32
 
from brzlib.i18n import gettext
 
32
from breezy.i18n import gettext
33
33
""")
34
34
 
35
 
from brzlib import (
 
35
from breezy import (
36
36
    errors,
37
37
    lazy_regex,
38
38
    registry,
103
103
        return tuple(self) == tuple(other)
104
104
 
105
105
    def __repr__(self):
106
 
        return '<brzlib.revisionspec.RevisionInfo object %s, %s for %r>' % (
 
106
        return '<breezy.revisionspec.RevisionInfo object %s, %s for %r>' % (
107
107
            self.revno, self.rev_id, self.branch)
108
108
 
109
109
    @staticmethod
786
786
 
787
787
    @staticmethod
788
788
    def _find_revision_id(branch, other_location):
789
 
        from brzlib.branch import Branch
 
789
        from breezy.branch import Branch
790
790
 
791
791
        branch.lock_read()
792
792
        try:
829
829
    dwim_catchable_exceptions = (errors.NotBranchError,)
830
830
 
831
831
    def _match_on(self, branch, revs):
832
 
        from brzlib.branch import Branch
 
832
        from breezy.branch import Branch
833
833
        other_branch = Branch.open(self.spec)
834
834
        revision_b = other_branch.last_revision()
835
835
        if revision_b in (None, revision.NULL_REVISION):
845
845
        return RevisionInfo(branch, None, revision_b)
846
846
 
847
847
    def _as_revision_id(self, context_branch):
848
 
        from brzlib.branch import Branch
 
848
        from breezy.branch import Branch
849
849
        other_branch = Branch.open(self.spec)
850
850
        last_revision = other_branch.last_revision()
851
851
        last_revision = revision.ensure_null(last_revision)
855
855
        return last_revision
856
856
 
857
857
    def _as_tree(self, context_branch):
858
 
        from brzlib.branch import Branch
 
858
        from breezy.branch import Branch
859
859
        other_branch = Branch.open(self.spec)
860
860
        last_revision = other_branch.last_revision()
861
861
        last_revision = revision.ensure_null(last_revision)