mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
7673f16536
Summary: This adds support for the following flags for `hg status` in the Rust wrapper: * `--all` * `--modified` * `--added` * `--removed` * `--deleted` * `--clean` * `--unknown` * `--ignored` * `--no-status` * `--copies` There is now a `create_print_config()` function that takes the parsed arguments and distills them into a `PrintConfig`, which describes the net configuration as a result of all the flags. (Note that some flags can interfere with each other, e.g., `--no-status` forces `--copies` to be disabled.) While here, I cleaned up a bunch of duplication in the code that prints the status to stdout. Much of the duplication in the old implementation has been encapsulated in a closure within the new `print_status()` function. This also made it easier to implement `--copies` for all of the different status types. Incidentally, this helps us specify `listIgnored` correctly when calling the `getScmStatus()` Thrift method as we now keep track of whether the user specified `--ignored`. This is particularly important for the Eden integration test suite because its `assert_status()` helper method calls `hg status --print0 -mardui` by default, so `buck test eden/...` makes much greater use of the Rust wrapper than it did before. Reviewed By: wez Differential Revision: D6770916 fbshipit-source-id: fea1a159addca6d16caa1b7019dc11dc2dcb3e1b |
||
---|---|---|
.. | ||
eden_server_inspector.py | ||
edenclient.py | ||
find_executables.py | ||
fs.py | ||
gitrepo.py | ||
hgrepo.py | ||
repobase.py | ||
TARGETS | ||
testcase.py |