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

Fix the build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Converters, etc for going between Bazaar and Git ids."""
18
18
 
19
 
from bzrlib import errors, foreign
20
 
 
 
19
from bzrlib import errors
 
20
from bzrlib.plugins.git import foreign
21
21
 
22
22
class BzrGitMapping(foreign.VcsMapping):
23
23
    """Class that maps between Git and Bazaar semantics."""
33
33
            raise errors.InvalidRevisionId(bzr_rev_id, self)
34
34
        return bzr_rev_id[len(self.revid_prefix)+1:]
35
35
 
36
 
    def show_foreign_revid(self, foreign_revid):
37
 
        return { "git commit": foreign_revid }
38
 
 
39
36
 
40
37
class BzrGitMappingExperimental(BzrGitMapping):
41
38
    revid_prefix = 'git-experimental'