Merge with crew-stable
authorMartin Geisler <mg@lazybytes.net>
Sun, 26 Jul 2009 02:33:38 +0200
changeset 9279 ca143d86727c
parent 9278 3d9f77c03105 (current diff)
parent 9242 6fd3f795e908 (diff)
child 9280 b694531a5aa7
Merge with crew-stable
--- a/hgext/convert/darcs.py	Sun Jul 26 02:14:30 2009 +0200
+++ b/hgext/convert/darcs.py	Sun Jul 26 02:33:38 2009 +0200
@@ -36,6 +36,10 @@
             raise NoRepo("%s does not look like a darcs repo" % path)
 
         checktool('darcs')
+        version = self.run0('--version').splitlines()[0].strip()
+        if version < '2.1':
+            raise util.Abort(_('darcs version 2.1 or newer needed (found %r)') %
+                             version)
 
         if ElementTree is None:
             raise util.Abort(_("Python ElementTree module is not available"))