# HG changeset patch # User Bryan O'Sullivan # Date 2009-07-25 17:08:20 # Node ID 6fd3f795e90846ff1a78de15fe34975537727eed # Parent b6cb3af61582d79c0af507e138d2b375f81ff4b6 issue1251: bail if darcs version is too old diff --git a/hgext/convert/darcs.py b/hgext/convert/darcs.py --- a/hgext/convert/darcs.py +++ b/hgext/convert/darcs.py @@ -36,6 +36,10 @@ class darcs_source(converter_source, com 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"))