diff cmdutil.py @ 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 75d4fde9aa2e
children 067914ecb4eb
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: