changeset 495:44bde69b6c49

stupid: detect renames with empty branchpath properly
author Augie Fackler <durin42@gmail.com>
date Wed, 07 Oct 2009 18:27:35 -0400
parents 6eea269ff134
children 5e0dfe59d4c3
files hgsubversion/stupid.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/stupid.py
+++ b/hgsubversion/stupid.py
@@ -252,7 +252,7 @@ def makecopyfinder(r, branchpath, rootdi
     directory copies return the copied source directory in "source".
     """
     # filter copy information for current branch
-    branchpath = branchpath + '/'
+    branchpath = (branchpath and branchpath + '/') or ''
     fullbranchpath = rootdir + branchpath
     copies = []
     for path, e in r.paths.iteritems():