convert: svn merges produce hard-to-trace file entries. Ignore them for now.
authorBrendan Cully <brendan@kublai.com>
Tue, 03 Jul 2007 19:49:36 -0700
changeset 4798 83c1bbb934ec
parent 4797 09dae950919f
child 4799 d00ca99bc54e
convert: svn merges produce hard-to-trace file entries. Ignore them for now.
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Tue Jul 03 19:26:41 2007 -0700
+++ b/hgext/convert/subversion.py	Tue Jul 03 19:49:36 2007 -0700
@@ -313,7 +313,7 @@
                     fromkind = svn.ra.check_path(self.ra, entrypath, fromrev)
                     if fromkind == svn.core.svn_node_file:   # a deleted file
                         entries.append(self.recode(entry))
-                    else:
+                    elif fromkind == svn.core.svn_node_dir:
                         # print "Deleted/moved non-file:", revnum, path, ent
                         # children = self._find_children(path, revnum - 1)
                         # print "find children %s@%d from %d action %s" % (path, revnum, ent.copyfrom_rev, ent.action)
@@ -343,6 +343,9 @@
                                     del copies[entry]
                                 else:
                                     entries.append(entry)
+                    else:
+                        self.ui.debug('unknown path in revision %d: %s\n' % \
+                                      (revnum, path))
                 elif kind == svn.core.svn_node_dir:
                     # Should probably synthesize normal file entries
                     # and handle as above to clean up copy/rename handling.