##// END OF EJS Templates
pathencode: fix hashmangle short dir limit (issue3958)...
pathencode: fix hashmangle short dir limit (issue3958) The Python version of this (see mercurial/store.py:_hashencode) copies path components up to a limit of maxshortdirslen bytes. The Python version does not consider the initial "dh/" to be part of the this, though, while the C version currently does. Adding len("dh/") == 3 to the limit for the C version brings it in line with the Python version. This was not caught by the randomized testing scheme in test-pathencode.py because of a couple of flaws with the test. Upcoming patches will fix those problems.

File last commit:

r0:9117c656 default
r19317:66da6e9f stable
Show More
__init__.py
0 lines | 0 B | text/x-python | PythonLexer