mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
e0afcd18bd
Summary: The `_makelogrevset` feels cryptic, partially because its use of `opt2revset` and related logic for adhoc revset expression calculation. This diff removes `opt2revset` and related logic, so: - `opts` is no longer both input and output. It's only input. The output is a different variable. - Use `revsetlang` APIs to format revset strings directly, without going through an indirection via `opts`. Avoid `repr` or `a % b` formatting. Note: `%d` is formatted as `_intlist(v)` instead of `rev(v)`. The new code generates slightly simpler revset expressions with less `()`s (or "group" in revsetlang AST). Reviewed By: zzl0 Differential Revision: D45936983 fbshipit-source-id: 3155016a85fa9ea61f9334a2d1fc82eac5450fec |
||
---|---|---|
.. | ||
fs | ||
integration | ||
locale | ||
mononoke | ||
scm | ||
test_support | ||
test-data | ||
testlib | ||
.clang-tidy | ||
.gitignore | ||
.mononoke_test_file | ||
Eden.project.toml |