##// END OF EJS Templates
store: optimize _pathencode by checking the length of the unencoded path...
Adrian Buehlmann -
r17693:0c6de45e default
parent child Browse files
Show More
@@ -255,6 +255,8 b' def _hybridencode(path, dotencode):'
255 return res
255 return res
256
256
257 def _pathencode(path):
257 def _pathencode(path):
258 if len(path) > _maxstorepathlen:
259 return None
258 ef = _encodefname(encodedir(path)).split('/')
260 ef = _encodefname(encodedir(path)).split('/')
259 res = '/'.join(_auxencode(ef, True))
261 res = '/'.join(_auxencode(ef, True))
260 if len(res) > _maxstorepathlen:
262 if len(res) > _maxstorepathlen:
General Comments 0
You need to be logged in to leave comments. Login now