[PATCH 09 of 10] store: remove uneeded startswith('data/') check in _hybridencode()

Adrian Buehlmann adrian at cadifra.com
Sat Sep 15 16:01:50 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1347738236 -7200
# Node ID ae4c4fab9e23816a243ce844efbc168b83902551
# Parent  be6fba3ba51bb4a5183da3cb08e871642dd382bc
store: remove uneeded startswith('data/') check in _hybridencode()

diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -198,8 +198,6 @@
     The string 'data/' at the beginning is replaced with 'dh/', if the hashed
     encoding was used.
     '''
-    if not path.startswith('data/'):
-        return path
     res = '/'.join(auxencode(encodefilename(path)))
     if len(res) > _maxstorepathlen:
         path = encodedir(path)


More information about the Mercurial-devel mailing list