changeset 17587:5fb8cf6f4f58

store: reorder basename assignment in _hybridencode
author Adrian Buehlmann <adrian@cadifra.com>
date Sun, 16 Sep 2012 11:35:55 +0200
parents 2f1475da1940
children 3d789dd72316
files mercurial/store.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]