changeset 544:809c673bdd30

svnwrap: escape copy sources paths in commit handler
author Patrick Mezard <pmezard@gmail.com>
date Mon, 25 Jan 2010 13:51:22 +0100
parents 2f5c7cef1723
children ebd8fb1a05e4
files hgsubversion/svnwrap/svn_swig_wrapper.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnwrap/svn_swig_wrapper.py
+++ b/hgsubversion/svnwrap/svn_swig_wrapper.py
@@ -460,7 +460,7 @@ class SubversionRepo(object):
             elif action == 'add':
                 frompath, fromrev = copies.get(path, (None, -1))
                 if frompath:
-                    frompath = self.svn_url + '/' + frompath
+                    frompath = self.path2url(frompath)
                 baton = editor.add_file(path, parent, frompath, fromrev, pool)
             elif action == 'delete':
                 baton = editor.delete_entry(path, base_revision, parent, pool)