convert: catch empty origpaths in svn gettags (issue3941) stable
authorMatt Mackall <mpm@selenic.com>
Fri, 19 Jul 2013 16:45:44 -0500
branchstable
changeset 19468 82c512643bed
parent 19467 1afe5d3939db
child 19469 bf6bc4681383
convert: catch empty origpaths in svn gettags (issue3941)
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Fri Jul 19 12:58:30 2013 -0500
+++ b/hgext/convert/subversion.py	Fri Jul 19 16:45:44 2013 -0500
@@ -483,6 +483,8 @@
         try:
             for entry in stream:
                 origpaths, revnum, author, date, message = entry
+                if not origpaths:
+                    origpaths = []
                 copies = [(e.copyfrom_path, e.copyfrom_rev, p) for p, e
                           in origpaths.iteritems() if e.copyfrom_path]
                 # Apply moves/copies from more specific to general