convert: avoid traceback in subversion sink stable
authorMatt Mackall <mpm@selenic.com>
Mon, 27 Apr 2015 11:11:26 -0500
branchstable
changeset 24856 5c1364b7e5ac
parent 24855 8015a3cf1380
child 24857 d8505bfe4825
convert: avoid traceback in subversion sink We've had a couple reports of subversion tracebacks that trigger when the parents list is empty, and thus block showing what the commit failure was on the next two lines.
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Fri Apr 24 15:29:02 2015 -0500
+++ b/hgext/convert/subversion.py	Mon Apr 27 11:11:26 2015 -0500
@@ -1293,7 +1293,7 @@
             try:
                 rev = self.commit_re.search(output).group(1)
             except AttributeError:
-                if not files:
+                if parents and not files:
                     return parents[0]
                 self.ui.warn(_('unexpected svn output:\n'))
                 self.ui.warn(output)