diff -r 2f1475da1940 -r 5fb8cf6f4f58 mercurial/store.py --- a/mercurial/store.py Sat Sep 15 21:44:08 2012 +0200 +++ b/mercurial/store.py Sun Sep 16 11:35:55 2012 +0200 @@ -201,8 +201,8 @@ path = encodedir(path) digest = _sha(path).hexdigest() parts = auxencode(lowerencode(path))[1:] - _root, ext = os.path.splitext(parts[-1]) basename = parts[-1] + _root, ext = os.path.splitext(basename) sdirs = [] for p in parts[:-1]: d = p[:_dirprefixlen]