Mercurial defines an exactmatcher, I find FileMatcher to be clearer, but
am not opposed to using the old name.
This change also switched the order of assert_eq arguments as it is clearer
that way for most people.
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG69c4f3cf2cdf: rust-matchers: add `FileMatcher` implementation
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
rust/hg-core/src/matchers.rs | ||
---|---|---|
128–131 | Same comment as on another (already submitted) patch: the argument order feels backwards. Do you mind changing it? | |
135 | It would be slightly simpler if the paths were owned. It doesn't seem too expensive to take ownership of the paths. Do we have any call sites in this series that we can look at? |
rust/hg-core/src/matchers.rs | ||
---|---|---|
135 | There is a single call site for now in D7529, it's really straightforward. Automated tools like CI can produce matchers with a lot of files and it seems to me not worth changing existing no-allocation code to get rid of a few lifetime annotations. Can we see if it gets too unwieldy? |
Same comment as on another (already submitted) patch: the argument order feels backwards. Do you mind changing it?