diff -r c6df6a23dfe5 -r 4ebecf331d7d mercurial/util.py --- a/mercurial/util.py Tue Mar 21 22:20:11 2017 -0700 +++ b/mercurial/util.py Tue Mar 21 22:23:11 2017 -0700 @@ -2637,7 +2637,7 @@ 'path', 'fragment'): v = getattr(self, a) if v is not None: - setattr(self, a, pycompat.urlunquote(v)) + setattr(self, a, urlreq.unquote(v)) def __repr__(self): attrs = []