Mercurial > hgsubversion
changeset 572:7f0e8fd6ee22
svnwrap: save the repository root, this might be useful later on
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 22 Feb 2010 23:24:11 +0100 |
parents | f3e5ef8760cb |
children | 00393e9abff8 |
files | hgsubversion/svnwrap/svn_swig_wrapper.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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