mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
918e1011b3
Summary: This is a s//g replacement of all the `return (type_name) {` with `return COMPOUND_LITERAL(type_name) {`. This is the command which produced the diff: `egrep 'return \(\w*\) \{' -Ir . --exclude='*.py*' --exclude-dir=.hg -l | xargs sed 's/return (\(\w*\)) {/return COMPOUND_LITERAL(\1) {/g' -i ` After I've done this, I checked: `egrep '\(\w+\) \{' -Ir . --exclude='*.py*' --exclude-dir=.hg | egrep -v '(switch|while)' | grep -v 'if (' | grep -v 'COMPOUND_LITERAL' | less` and it looks like the only things of `(something) {` syntax are function definitions, adding space before `(` in search pattern yields no results. This is needed to make this compile on Windows under MSVC2015. Depends on: D4843230 Test Plan: - run `python setup.py build -f`, see it compile - run all the tests, see them pass Reviewers: #sourcecontrol, rmcelroy Reviewed By: rmcelroy Subscribers: rmcelroy, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4843240 Signature: t1:4843240:1491495690:a097bfab403805052d5ac25d1db7bb32af3bca28 |
||
---|---|---|
.. | ||
.hgignore | ||
bsearch_test.c | ||
bsearch.c | ||
bsearch.h | ||
checksum_test.c | ||
checksum.c | ||
checksum.h | ||
internal_result.h | ||
node_test.c | ||
node.c | ||
node.h | ||
path_buffer.h | ||
README | ||
result.h | ||
tests.c | ||
tests.h | ||
tree_arena.c | ||
tree_arena.h | ||
tree_convert_rt.c | ||
tree_convert_test.c | ||
tree_convert.c | ||
tree_copy_test.c | ||
tree_copy.c | ||
tree_diff_test.c | ||
tree_diff.c | ||
tree_disk_test.c | ||
tree_disk.c | ||
tree_dump.c | ||
tree_iterate_rt.c | ||
tree_iterator_test.c | ||
tree_iterator.c | ||
tree_iterator.h | ||
tree_path.c | ||
tree_path.h | ||
tree_test.c | ||
tree.c | ||
tree.h |
fastmanifest is a tree-based implementation to speed up manifest operations in Mercurial. Its design is optimized for quick deserialization from a persistent store. In compact form, the entire tree is relocatable without any traversals.