diff hgext/convert/subversion.py @ 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 83973dc1bfe9
children 87f07f70f227
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