changeset 19468:82c512643bed stable

convert: catch empty origpaths in svn gettags (issue3941)
author Matt Mackall <mpm@selenic.com>
date Fri, 19 Jul 2013 16:45:44 -0500
parents 1afe5d3939db
children bf6bc4681383
files hgext/convert/subversion.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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