# HG changeset patch # User Adrian Buehlmann # Date 1347738236 -7200 # Node ID 8ed2783f338f20692ef1d904cb00137c3934f1c1 # Parent 61cd71dc3797fc4901a60e03986e430443b9a43f store: remove uneeded startswith('data/') check in _hybridencode() diff -r 61cd71dc3797 -r 8ed2783f338f 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)