diff -r 5bff70ff0431 -r f0a3918abd42 hgext/convert/darcs.py --- a/hgext/convert/darcs.py Sun Oct 28 09:47:54 2007 +0100 +++ b/hgext/convert/darcs.py Tue Oct 30 22:14:15 2007 +0100 @@ -1,6 +1,6 @@ # darcs support for the convert extension -from common import NoRepo, commit, converter_source +from common import NoRepo, commit, converter_source, checktool from mercurial.i18n import _ from mercurial import util import os, shutil, tempfile @@ -24,6 +24,8 @@ if not os.path.exists(os.path.join(path, '_darcs', 'inventory')): raise NoRepo("couldn't open darcs repo %s" % path) + checktool('darcs') + if ElementTree is None: raise util.Abort(_("Python ElementTree module is not available"))