##// END OF EJS Templates
contrib: add a partial-merge tool for sorted lists (such as Python imports)...
contrib: add a partial-merge tool for sorted lists (such as Python imports) This is a pretty naive tool that uses a regular expression for matching lines. It is based on a Google-internal tool that worked in a similar way. For now, the regular expression is hard-coded to attempt to match single-line Python imports. The only commit I've found in the hg core repo where the tool helped was commit 9cd6292abfdf. I think that's because we often use multiple imports per import statement. I think this tool is still a decent first step (especially once the regex is made configurable in the next patch). The merging should ideally use a proper Python parser and do the merge at the AST (or CST?) level, but that's significantly harder, especially if you want to preserve comments and whitespace. It's also less generic. Differential Revision: https://phab.mercurial-scm.org/D12380

File last commit:

r42237:675775c3 default
r49874:681b25ea default
Show More
MANIFEST.in
9 lines | 139 B | text/plain | TextLexer
Gregory Szorc
zstd: vendor python-zstandard 0.6.0...
r30822 graft c-ext
Gregory Szorc
zstandard: vendor python-zstandard 0.10.1...
r40157 graft debian
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 graft zstd
Gregory Szorc
zstandard: vendor python-zstandard 0.9.0...
r37513 graft tests
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 include make_cffi.py
Gregory Szorc
zstd: vendor python-zstandard 0.6.0...
r30822 include setup_zstd.py
include zstd.c
Gregory Szorc
zstandard: vendor python-zstandard 0.9.0...
r37513 include LICENSE
Gregory Szorc
zstandard: vendor python-zstandard 0.10.1...
r40157 include NEWS.rst