comparison hgext/convert/subversion.py @ 11125:7a5a98fc38e9 stable

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.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 09 May 2010 19:11:02 +0200
parents 8dd69bee71da
children f7535c433d22
comparison
equal deleted inserted replaced
11124:55abde5cba43 11125:7a5a98fc38e9
660 nroot = path.strip('/') 660 nroot = path.strip('/')
661 children = self._find_children(oroot, prevnum) 661 children = self._find_children(oroot, prevnum)
662 children = [s.replace(oroot, nroot) for s in children] 662 children = [s.replace(oroot, nroot) for s in children]
663 for child in children: 663 for child in children:
664 childpath = self.getrelpath("/" + child, pmodule) 664 childpath = self.getrelpath("/" + child, pmodule)
665 if not childpath: 665 if childpath:
666 continue 666 entries.append(childpath)
667 if childpath in copies:
668 del copies[childpath]
669 entries.append(childpath)
670 else: 667 else:
671 self.ui.debug('unknown path in revision %d: %s\n' % \ 668 self.ui.debug('unknown path in revision %d: %s\n' % \
672 (revnum, path)) 669 (revnum, path))
673 elif kind == svn.core.svn_node_dir: 670 elif kind == svn.core.svn_node_dir:
674 # If the directory just had a prop change, 671 # If the directory just had a prop change,