hgext/convert/subversion.py
changeset 9168 e8441597d2ee
parent 8888 bd93d0e0d317
child 9169 7a276f72a08a
child 9521 e3ce0c30798b
--- a/hgext/convert/subversion.py	Fri Jul 10 19:45:31 2009 +0200
+++ b/hgext/convert/subversion.py	Fri Jul 17 13:31:12 2009 +0200
@@ -455,8 +455,9 @@
                 # Here/tags/tag.1 discarded as well as its children.
                 # It happens with tools like cvs2svn. Such tags cannot
                 # be represented in mercurial.
-                addeds = dict((p, e.copyfrom_path) for p, e
-                              in origpaths.iteritems() if e.action == 'A')
+                addeds = dict((p, e.copyfrom_path) for p, e 
+                              in origpaths.iteritems() 
+                              if e.action == 'A' and e.copyfrom_path)
                 badroots = set()
                 for destroot in addeds:
                     for source, sourcerev, dest in pendings: