convert: check for darcs-2-compatible path
authorBryan O'Sullivan <bos@serpentine.com>
Wed, 07 Jan 2009 17:33:07 -0800
changeset 7609 82107c6b009e
parent 7608 560e3e882aba
child 7610 878466138b57
convert: check for darcs-2-compatible path
hgext/convert/darcs.py
--- a/hgext/convert/darcs.py	Wed Jan 07 02:13:32 2009 +0100
+++ b/hgext/convert/darcs.py	Wed Jan 07 17:33:07 2009 -0800
@@ -32,7 +32,7 @@
         if ElementTree is None:
             raise util.Abort(_("Python ElementTree module is not available"))
 
-        if not os.path.exists(os.path.join(path, '_darcs', 'inventory')):
+        if not os.path.exists(os.path.join(path, '_darcs', 'inventories')):
             raise NoRepo("%s does not look like a darcs repo" % path)
 
         self.path = os.path.realpath(path)