/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 reporting of git commits in 'bzr log'.

Show diffs side-by-side

added added

removed removed

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