# HG changeset patch # User Dirkjan Ochtman # Date 1266877451 -3600 # Node ID 7f0e8fd6ee22c698d3d127af46368575a72c75ed # Parent f3e5ef8760cbb534b72c950b8929f3ffcafba91a svnwrap: save the repository root, this might be useful later on diff --git a/hgsubversion/svnwrap/svn_swig_wrapper.py b/hgsubversion/svnwrap/svn_swig_wrapper.py --- a/hgsubversion/svnwrap/svn_swig_wrapper.py +++ b/hgsubversion/svnwrap/svn_swig_wrapper.py @@ -199,9 +199,9 @@ class SubversionRepo(object): self.init_ra_and_client() self.uuid = ra.get_uuid(self.ra, self.pool) - repo_root = urllib.unquote(ra.get_repos_root(self.ra, self.pool)) + self.root = urllib.unquote(ra.get_repos_root(self.ra, self.pool)) # *will* have a leading '/', would not if we used get_repos_root2 - self.subdir = url[len(repo_root):] + self.subdir = url[len(self.root):] if not self.subdir or self.subdir[-1] != '/': self.subdir += '/' self.hasdiff3 = True