Commit Graph

3 Commits

Author SHA1 Message Date
Mark Thomas
ce6e0dbf64 sparse: replace delete with uninclude and unexclude
Summary:
Replace `sparse delete` (which deletes an include or exclude rule) with commands
that better describe what they do.

Also update `include` and `exclude` to additionally remove the rule from the
opposite set.  It makes no sense for a file to be both included and excluded.

Reviewed By: phillco

Differential Revision: D10446704

fbshipit-source-id: 8966f7d0e54b1aae737fa0bae9cf35ed7ce88696
2018-10-19 06:51:42 -07:00
Kostia Balytskyi
86f07601f7 sparse: rename fbsparse into sparse in tests
Reviewed By: phillco

Differential Revision: D10335084

fbshipit-source-id: 91e0a17957561410e397a006f99ebf549d34e1e4
2018-10-16 14:27:29 -07:00
Martijn Pieters
3b4b3d8cbb sparse: make use of matchers for faster path listing
Summary:
The current code iterates over all files in the manifest, filtering against a prefix.

But a manifest supports using a matcher directly, and efficient implementations like the treemanifest will prune the tree to a much smaller subset rapidly based on the path in a matcher. Switching to using a matcher dramatically improves --cwd-list performance in fbsource, when treemanifests are available.

Reviewed By: quark-zju

Differential Revision: D7056650

fbshipit-source-id: 2bf62ea93680323a49c9282266118805881d7b02
2018-04-13 21:51:21 -07:00