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

Use relative imports where possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# Please note that imports are delayed as much as possible here since
21
21
# if DWIM revspecs are supported this module is imported by __init__.py.
22
22
 
23
 
from bzrlib import version_info as bzrlib_version
24
 
from bzrlib.errors import (
 
23
from ... import version_info as bzrlib_version
 
24
from ...errors import (
25
25
    InvalidRevisionId,
26
26
    InvalidRevisionSpec,
27
27
    )
28
 
from bzrlib.revision import (
 
28
from ...revision import (
29
29
    NULL_REVISION,
30
30
)
31
 
from bzrlib.revisionspec import (
 
31
from ...revisionspec import (
32
32
    RevisionInfo,
33
33
    RevisionSpec,
34
34
    )
59
59
    wants_revision_history = False
60
60
 
61
61
    def _lookup_git_sha1(self, branch, sha1):
62
 
        from bzrlib.plugins.git.errors import (
 
62
        from .errors import (
63
63
            GitSmartRemoteNotSupported,
64
64
            )
65
 
        from bzrlib.plugins.git.mapping import (
 
65
        from .mapping import (
66
66
            default_mapping,
67
67
            )
68
68
 
84
84
        return True
85
85
 
86
86
    def _find_short_git_sha1(self, branch, sha1):
87
 
        from bzrlib.plugins.git.mapping import (
 
87
        from .mapping import (
88
88
            ForeignGit,
89
89
            mapping_registry,
90
90
            )
113
113
        git_sha1 = self.spec[loc+1:].encode("utf-8")
114
114
        if len(git_sha1) > 40 or not valid_git_sha1(git_sha1):
115
115
            raise InvalidRevisionSpec(self.user_spec, branch)
116
 
        from bzrlib.plugins.git import (
 
116
        from . import (
117
117
            lazy_check_versions,
118
118
            )
119
119
        lazy_check_versions()