convert/svn: remove broken but unused copy filtering code stable
authorPatrick Mezard <pmezard@gmail.com>
Sun, 09 May 2010 19:11:02 +0200
branchstable
changeset 11125 7a5a98fc38e9
parent 11124 55abde5cba43
child 11126 f7535c433d22
convert/svn: remove broken but unused copy filtering code For some reason, if a copy source is deleted in the same revision it is referenced, it is filtered out. This is silly, because this happens all the time with move operations. Fortunately, the filtering code is buggy and ends being a no-op 99% of the time, since it does not delete the right key. Just remove all this nonsense.
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Sun May 09 19:11:02 2010 +0200
+++ b/hgext/convert/subversion.py	Sun May 09 19:11:02 2010 +0200
@@ -662,11 +662,8 @@
                     children = [s.replace(oroot, nroot) for s in children]
                     for child in children:
                         childpath = self.getrelpath("/" + child, pmodule)
-                        if not childpath:
-                            continue
-                        if childpath in copies:
-                            del copies[childpath]
-                        entries.append(childpath)
+                        if childpath:
+                            entries.append(childpath)
                 else:
                     self.ui.debug('unknown path in revision %d: %s\n' % \
                                   (revnum, path))