-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revset: introduce more performant way to check if a commit is in a re…
…vset Initially we were thinking to have `Revset` return something like `CachedRevset`: ``` pub trait CachedRevset { fn iter(&self) -> Box<dyn Iterator<Item = Commit>>; fn contains(&self, &CommitId) -> bool; } ``` But we weren't sure what use case for `iter` would be, so we dropped the `iter` method. `CachedRevset` with single `contains` method needed a better name. We weren't able to come up with one, so we decided instead to have a method on `Revset` that returns a closure to check if a commit is in a revset.
- Loading branch information
Showing
3 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters