diff -r e7cfe3587ea4 -r e95ec38f86b0 mercurial/util.py --- a/mercurial/util.py Wed Aug 15 22:38:42 2012 +0200 +++ b/mercurial/util.py Wed Aug 15 22:39:18 2012 +0200 @@ -1477,7 +1477,11 @@ for a in _hexdig for b in _hexdig) def _urlunquote(s): - """unquote('abc%20def') -> 'abc def'.""" + """Decode HTTP/HTML % encoding. + + >>> _urlunquote('abc%20def') + 'abc def' + """ res = s.split('%') # fastpath if len(res) == 1: