15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
16
"""Custom revision specifier for Subversion."""
21
18
from bzrlib.errors import (
25
27
from bzrlib.revisionspec import (
41
42
class RevisionSpec_git(RevisionSpec):
42
43
"""Selects a revision using a Subversion revision number."""
44
45
help_txt = """Selects a revision using a Git revision sha1.
48
49
wants_revision_history = False
50
51
def _lookup_git_sha1(self, branch, sha1):
55
52
bzr_revid = branch.mapping.revision_id_foreign_to_bzr(sha1)
57
54
if branch.repository.has_revision(bzr_revid):