~jelmer/bzr-builddeb/relative-imports

« back to all changes in this revision

Viewing changes to upstream/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2017-06-17 12:43:00 UTC
  • Revision ID: jelmer@jelmer.uk-20170617124300-qmzisp1n28d0tfqw
Use more relative imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import re
22
22
 
23
 
from bzrlib.branch import Branch
24
 
from bzrlib.errors import (
 
23
from ....branch import Branch
 
24
from ....errors import (
25
25
    InvalidRevisionId,
26
26
    InvalidRevisionSpec,
27
27
    NoSuchTag,
28
28
    )
29
 
from bzrlib.revisionspec import RevisionSpec
30
 
from bzrlib.trace import note
 
29
from ....revisionspec import RevisionSpec
 
30
from ....trace import note
31
31
 
32
 
from bzrlib.plugins.builddeb.errors import (
 
32
from ..errors import (
33
33
    MultipleUpstreamTarballsNotSupported,
34
34
    PackageVersionNotPresent,
35
35
    )
36
 
from bzrlib.plugins.builddeb.upstream import UpstreamSource
37
 
from bzrlib.plugins.builddeb.util import (
 
36
from . import UpstreamSource
 
37
from ..util import (
38
38
    export,
39
39
    )
40
40
 
101
101
         if the revision number could not be determined (bzr-svn not available).
102
102
    """
103
103
    try:
104
 
        from bzrlib.plugins.svn import extract_svn_foreign_revid
 
104
        from ...svn import extract_svn_foreign_revid
105
105
    except ImportError:
106
106
        # No svn support
107
107
        return None