# HG changeset patch # User Augie Fackler # Date 1254954455 14400 # Node ID 44bde69b6c49b94bcf3152352d17daf875cf9e8c # Parent 6eea269ff1345b174fcebe8385f3c18039d29fe4 stupid: detect renames with empty branchpath properly diff --git a/hgsubversion/stupid.py b/hgsubversion/stupid.py --- 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():