/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

Fix use in non-git branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        from bzrlib.plugins.git.errors import (
52
52
            GitSmartRemoteNotSupported,
53
53
            )
 
54
        from bzrlib.plugins.git.mapping import (
 
55
            default_mapping,
 
56
            )
54
57
 
55
 
        bzr_revid = branch.mapping.revision_id_foreign_to_bzr(sha1)
 
58
        bzr_revid = getattr(branch.repository, "lookup_foreign_revision_id",
 
59
                              default_mapping.revision_id_foreign_to_bzr)(sha1)
56
60
        try:
57
61
            if branch.repository.has_revision(bzr_revid):
58
62
                history = self._history(branch, bzr_revid)