[PATCH 1 of 5] store: reorder basename assignment in _hybridencode
Adrian Buehlmann
adrian at cadifra.com
Sun Sep 16 05:27:08 CDT 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1347788155 -7200
# Node ID 4457f52a46c260dba741982c8e116a1fbe075e36
# Parent 635677490a48978dd730f17c01fabf38a9a20c1e
store: reorder basename assignment in _hybridencode
diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -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]
More information about the Mercurial-devel
mailing list