changeset 22629 | b3f74b405c20 |
parent 22627 | 808df84fba83 |
child 22644 | 1ec7cdaf898f |
--- a/mercurial/bookmarks.py Thu Oct 02 11:35:20 2014 -0500 +++ b/mercurial/bookmarks.py Thu Oct 02 16:43:50 2014 -0500 @@ -338,9 +338,11 @@ break # try to use an @pathalias suffix # if an @pathalias already exists, we overwrite (update) it - path = str(util.url(path)) + if path.startswith("file:"): + path = util.url(path).path for p, u in ui.configitems("paths"): - u = str(util.url(path)) + if u.startswith("file:"): + u = util.url(u).path if path == u: n = '%s@%s' % (b, p) return n