convert/svn: tree conflicts no longer happen now we use memctx stable
authorPatrick Mezard <pmezard@gmail.com>
Sat, 01 May 2010 16:29:27 +0200
branchstable
changeset 11123 8dd69bee71da
parent 11103 d29bd98ebff6
child 11124 55abde5cba43
convert/svn: tree conflicts no longer happen now we use memctx
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Fri May 07 17:03:31 2010 +0200
+++ b/hgext/convert/subversion.py	Sat May 01 16:29:27 2010 +0200
@@ -656,14 +656,10 @@
                 if fromkind == svn.core.svn_node_file:
                     entries.append(self.recode(entrypath))
                 elif fromkind == svn.core.svn_node_dir:
-                    if ent.action == 'C':
-                        children = self._find_children(path, prevnum)
-                    else:
-                        oroot = parentpath.strip('/')
-                        nroot = path.strip('/')
-                        children = self._find_children(oroot, prevnum)
-                        children = [s.replace(oroot, nroot) for s in children]
-
+                    oroot = parentpath.strip('/')
+                    nroot = path.strip('/')
+                    children = self._find_children(oroot, prevnum)
+                    children = [s.replace(oroot, nroot) for s in children]
                     for child in children:
                         childpath = self.getrelpath("/" + child, pmodule)
                         if not childpath: