store: remove uneeded startswith('data/') check in _hybridencode()
authorAdrian Buehlmann <adrian@cadifra.com>
Sat, 15 Sep 2012 21:43:56 +0200
changeset 17585 8ed2783f338f
parent 17584 61cd71dc3797
child 17586 2f1475da1940
store: remove uneeded startswith('data/') check in _hybridencode()
mercurial/store.py
--- a/mercurial/store.py	Sat Sep 15 21:43:14 2012 +0200
+++ b/mercurial/store.py	Sat Sep 15 21:43:56 2012 +0200
@@ -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)