git convert: some versions of git use fatal: instead of error:
authorAugie Fackler <raf@durin42.com>
Fri, 08 Feb 2013 07:09:48 -0600
changeset 18572 5fe58f9332a4
parent 18571 ad5817505834
child 18573 003730ca254d
git convert: some versions of git use fatal: instead of error: I saw this behavior with git 1.7.12 on my Mac.
hgext/convert/git.py
--- a/hgext/convert/git.py	Fri Feb 08 07:57:32 2013 -0600
+++ b/hgext/convert/git.py	Fri Feb 08 07:09:48 2013 -0600
@@ -231,7 +231,7 @@
         # Build complete list of tags, both annotated and bare ones
         for line in fh:
             line = line.strip()
-            if line.startswith("error:"):
+            if line.startswith("error:") or line.startswith("fatal:"):
                 raise util.Abort(_('cannot read tags from %s') % self.path)
             node, tag = line.split(None, 1)
             if not tag.startswith(prefix):