# HG changeset patch # User Matt Mackall # Date 1412286230 18000 # Node ID b3f74b405c2014f154fe622a30751298945ccccb # Parent 2805d23e1f885ff183b900e4407d3c31758d5b59 bookmarks: fix divergent bookmark path normalization diff -r 2805d23e1f88 -r b3f74b405c20 mercurial/bookmarks.py --- 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