mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 15:44:27 +03:00
41d6c2d42c
Summary: The existing query API `filter` has 2 issues: - It does querying and filtering together, making it hard to express certain queries. For example: "for commands taking more than 10 seconds, get all network requests used by those commands". - The `IndexFilter` abstraction overlaps with `pattern`s. `IndexFilter` is built upon the `Entry` structure, and does not work for `Event`s. In the future, we want a `Event::Tags` to tag commands, and build indexes on it. That's not very compatible with `IndexFilter`. To address the issues, I'm going to: - Decouple querying and filtering by splitting it into 2 methods glued by `SessionId`s. - Deprecate `IndexFilter`. Make `patterns` the only way to filter entries. - Add dedicated indexes for certain events. This diff adds the related APIs towards that direction. Differential Revision: D18610737 fbshipit-source-id: c6ab92fd6fa7bb2ee7e14f567d72ac98b287c143 |
||
---|---|---|
.. | ||
CMake | ||
contrib | ||
distutils_rust | ||
doc | ||
edenscm | ||
edenscmnative | ||
exec | ||
i18n | ||
lib | ||
newdoc | ||
slides | ||
tests | ||
.editorconfig | ||
.flake8 | ||
.gitignore | ||
CMakeLists.txt | ||
COPYING | ||
gen_version.py | ||
hgeditor | ||
Makefile | ||
README.rst | ||
setup.py |
Mercurial ========= Mercurial is a fast, easy to use, distributed revision control tool for software developers. Basic install:: $ make # see install targets $ make install # do a system-wide install $ hg debuginstall # sanity-check setup $ hg # see help Running without installing:: $ make local # build for inplace usage $ ./hg --version # should show the latest version See https://mercurial-scm.org/ for detailed installation instructions, platform-specific notes, and Mercurial user information.