hgext/convert/hg.py
changeset 26154 242853e14804
parent 26078 5ca587348875
child 26587 56b2bcea2529
--- a/hgext/convert/hg.py	Fri Sep 04 02:51:57 2015 +0800
+++ b/hgext/convert/hg.py	Thu Sep 03 10:29:42 2015 -0700
@@ -431,9 +431,6 @@
 class mercurial_source(converter_source):
     def __init__(self, ui, path, revs=None):
         converter_source.__init__(self, ui, path, revs)
-        if revs and len(revs) > 1:
-            raise util.Abort(_("mercurial source does not support specifying "
-                               "multiple revisions"))
         self.ignoreerrors = ui.configbool('convert', 'hg.ignoreerrors', False)
         self.ignored = set()
         self.saverev = ui.configbool('convert', 'hg.saverev', False)
@@ -468,7 +465,7 @@
             else:
                 self.keep = util.always
             if revs:
-                self._heads = [self.repo[revs[0]].node()]
+                self._heads = [self.repo[r].node() for r in revs]
             else:
                 self._heads = self.repo.heads()
         else: