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

Support bzr 1.14 as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    NoSuchRef,
47
47
    )
48
48
 
 
49
try:
 
50
    from bzrlib.foreign import ForeignBranch
 
51
except ImportError:
 
52
    class ForeignBranch(branch.Branch):
 
53
        def __init__(self, mapping):
 
54
            self.mapping = mapping
 
55
            super(ForeignBranch, self).__init__()
 
56
 
49
57
 
50
58
class GitPullResult(branch.PullResult):
51
59
 
104
112
            return LocalGitTagDict(branch)
105
113
 
106
114
 
107
 
class GitBranch(foreign.ForeignBranch):
 
115
class GitBranch(ForeignBranch):
108
116
    """An adapter to git repositories for bzr Branch objects."""
109
117
 
110
118
    def __init__(self, bzrdir, repository, name, head, lockfiles):