hgext/convert/hg.py
branchstable
changeset 16106 d75aa756149b
parent 15193 a84e3ed661cb
child 16162 7e279d475669
--- a/hgext/convert/hg.py	Fri Feb 10 22:25:49 2012 +0100
+++ b/hgext/convert/hg.py	Fri Feb 10 22:34:13 2012 +0100
@@ -223,6 +223,12 @@
             self.repo._bookmarks[bookmark] = bin(updatedbookmark[bookmark])
             bookmarks.write(self.repo)
 
+    def hascommit(self, rev):
+        if not rev in self.repo and self.clonebranches:
+            raise util.Abort(_('revision %s not be found in destination '
+                               'repository (lookups with clonebranches=true '
+                               'are not implemented)') % rev)
+        return rev in self.repo
 
 class mercurial_source(converter_source):
     def __init__(self, ui, path, rev=None):