hgext/convert/monotone.py
changeset 13761 aeb41f0048e7
parent 13760 ed97955e0c04
child 13779 c13bfa451656
--- a/hgext/convert/monotone.py	Wed Mar 23 14:26:56 2011 -0400
+++ b/hgext/convert/monotone.py	Fri Mar 25 10:13:46 2011 -0400
@@ -20,6 +20,7 @@
         self.ui = ui
         self.path = path
         self.automatestdio = False
+        self.rev = rev
 
         norepo = NoRepo(_("%s does not look like a monotone repository")
                         % path)
@@ -65,14 +66,6 @@
 
         checktool('mtn', abort=False)
 
-        # test if there are any revisions
-        self.rev = None
-        try:
-            self.getheads()
-        except:
-            raise norepo
-        self.rev = rev
-
     def mtnrun(self, *args, **kwargs):
         if self.automatestdio:
             return self.mtnrunstdio(*args, **kwargs)