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