changeset 311:b6a9cdee2f68

cmdutil: fix svn path normalization corner case When the subpath is empty we ended with "path/" instead of "path".
author Patrick Mezard <pmezard@gmail.com>
date Wed, 29 Apr 2009 12:01:31 +0200
parents ba8e91a7c077
children 4dc197f533c1
files cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmdutil.py
+++ b/cmdutil.py
@@ -230,7 +230,7 @@ def commit_from_rev(ui, repo, rev_ctx, h
         file_data[file] = base_data, new_data, action
 
     def svnpath(p):
-        return '%s/%s' % (branch_path, p)
+        return ('%s/%s' % (branch_path, p)).rstrip('/')
 
     changeddirs = []
     for d, v1, v2 in extchanges: