##// END OF EJS Templates
store: reuse direncoded path in _hybridencode...
Adrian Buehlmann -
r17609:cbc180cf default
parent child Browse files
Show More
@@ -215,10 +215,10 b' def _hybridencode(path, dotencode):'
215 The string 'data/' at the beginning is replaced with 'dh/', if the hashed
215 The string 'data/' at the beginning is replaced with 'dh/', if the hashed
216 encoding was used.
216 encoding was used.
217 '''
217 '''
218 ef = encodefilename(path).split('/')
218 path = encodedir(path)
219 ef = _encodefname(path).split('/')
219 res = '/'.join(_auxencode(ef, dotencode))
220 res = '/'.join(_auxencode(ef, dotencode))
220 if len(res) > _maxstorepathlen:
221 if len(res) > _maxstorepathlen:
221 path = encodedir(path)
222 digest = _sha(path).hexdigest()
222 digest = _sha(path).hexdigest()
223 le = lowerencode(path).split('/')[1:]
223 le = lowerencode(path).split('/')[1:]
224 parts = _auxencode(le, dotencode)
224 parts = _auxencode(le, dotencode)
General Comments 0
You need to be logged in to leave comments. Login now