This has no effect yet because 1) for committed changes, ctx.matches()
just calls ctx.walk(), which we updated in the previous patch, and 2)
for the working copy, the filtering is also done in the overridden
dirstate.walk() in narrowdirstate.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGaa41f1b01f31: narrow: filter files by narrowspec in ctx.matches()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
This has no effect yet [...] for the working copy, the filtering is also done in the overridden dirstate.walk() in narrowdirstate.
For the record, that turned out to be a (small) lie: dirstate.matches() doesn't call dirstate.walk(), so the override of dirstate.walk() had no effect here. A consequence is that we'll now filter out paths in the dirstate that are outside the narrowspec. That doesn't normally happen, but it can happen e.g. with hg share (that's how I noticed). I think the change is for the better, but I thought I should let you know that the commit message was incorrect.