# HG changeset patch # User Patrick Mezard # Date 2008-01-19 13:39:30 # Node ID b32a0596b2d75f6c54e13ee4432d4630e31d0474 # Parent cacfeee38870ddb8611ea79e5fa1352d920c1a63 convert: fix invalid svn.ra.check_path() call (issue 771) The svn transport must be reparented to repository root before using check_path() with full entrypaths. diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py --- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -439,7 +439,12 @@ class svn_source(converter_source): fromrev = froment.copyfrom_rev self.ui.debug("Info: %s %s %s %s\n" % (frompath, froment, ent, entrypath)) - fromkind = svn.ra.check_path(self.ra, entrypath, fromrev) + # We can avoid the reparent calls if the module has not changed + # but it probably does not worth the pain. + self.reparent('') + fromkind = svn.ra.check_path(self.ra, entrypath.strip('/'), fromrev) + self.reparent(self.module) + if fromkind == svn.core.svn_node_file: # a deleted file entries.append(self.recode(entry)) elif fromkind == svn.core.svn_node_dir: