--- 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):