changeset 9279:ca143d86727c

Merge with crew-stable
author Martin Geisler <mg@lazybytes.net>
date Sun, 26 Jul 2009 02:33:38 +0200
parents 3d9f77c03105 (current diff) 6fd3f795e908 (diff)
children b694531a5aa7
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"))