changeset 7515 | ee5aba886108 |
parent 7514 | e54cf540c6ca |
child 7890 | e710f0f592b2 |
--- a/mercurial/store.py Sat Dec 13 17:39:56 2008 +0100 +++ b/mercurial/store.py Sat Dec 13 18:32:29 2008 +0100 @@ -61,6 +61,9 @@ # encode third letter ('aux' -> 'au~78') ec = "~%02x" % ord(n[2]) n = n[0:2] + ec + n[3:] + if n[-1] in '. ': + # encode last period or space ('foo...' -> 'foo..~2e') + n = n[:-1] + "~%02x" % ord(n[-1]) res.append(n) return '/'.join(res)