# HG changeset patch # User Patrick Mezard # Date 2009-07-17 11:31:12 # Node ID e8441597d2eefeb89abf71c205470928bfdd8159 # Parent 335f749cc36915b80ba1397cd9d11f7605f5d50c convert/svn: fix backtrace in tags discovery (issue1742) diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py --- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -455,8 +455,9 @@ class svn_source(converter_source): # 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: