Show More
@@ -649,7 +649,7 b' class svn_source(converter_source):' | |||
|
649 | 649 | elif fromkind == svn.core.svn_node_dir: |
|
650 | 650 | oroot = parentpath.strip('/') |
|
651 | 651 | nroot = path.strip('/') |
|
652 |
children = self._ |
|
|
652 | children = self._iterfiles(oroot, prevnum) | |
|
653 | 653 | for childpath in children: |
|
654 | 654 | childpath = childpath.replace(oroot, nroot) |
|
655 | 655 | childpath = self.getrelpath("/" + childpath, pmodule) |
@@ -671,8 +671,7 b' class svn_source(converter_source):' | |||
|
671 | 671 | if pkind == svn.core.svn_node_file: |
|
672 | 672 | removed.add(self.recode(entrypath)) |
|
673 | 673 | |
|
674 |
|
|
|
675 | for childpath in children: | |
|
674 | for childpath in self._iterfiles(path, revnum): | |
|
676 | 675 | childpath = self.getrelpath("/" + childpath) |
|
677 | 676 | if childpath: |
|
678 | 677 | changed.add(self.recode(childpath)) |
@@ -690,8 +689,7 b' class svn_source(converter_source):' | |||
|
690 | 689 | continue |
|
691 | 690 | self.ui.debug("mark %s came from %s:%d\n" |
|
692 | 691 | % (path, copyfrompath, ent.copyfrom_rev)) |
|
693 |
children = self._ |
|
|
694 | children.sort() | |
|
692 | children = self._iterfiles(ent.copyfrom_path, ent.copyfrom_rev) | |
|
695 | 693 | for childpath in children: |
|
696 | 694 | childpath = self.getrelpath("/" + childpath, pmodule) |
|
697 | 695 | if not childpath: |
@@ -860,14 +858,14 b' class svn_source(converter_source):' | |||
|
860 | 858 | data = data[len(link_prefix):] |
|
861 | 859 | return data, mode |
|
862 | 860 | |
|
863 |
def _ |
|
|
864 |
""" |
|
|
861 | def _iterfiles(self, path, revnum): | |
|
862 | """Enumerate all files in path at revnum, recursively.""" | |
|
865 | 863 | path = path.strip('/') |
|
866 | 864 | pool = Pool() |
|
867 | 865 | rpath = '/'.join([self.baseurl, urllib.quote(path)]).strip('/') |
|
868 | entries = svn.client.ls(rpath, optrev(revnum), True, self.ctx, pool) | |
|
869 |
return |
|
|
870 |
if e.kind == svn.core.svn_node_file |
|
|
866 | entries = svn.client.ls(rpath, optrev(revnum), True, self.ctx, pool) | |
|
867 | return ((path + '/' + p) for p, e in entries.iteritems() | |
|
868 | if e.kind == svn.core.svn_node_file) | |
|
871 | 869 | |
|
872 | 870 | def getrelpath(self, path, module=None): |
|
873 | 871 | if module is None: |
General Comments 0
You need to be logged in to leave comments.
Login now