test-narrow-expanddirstate.t mimics a Google-internal extension that
updates the narrowspec whenever the dirstate is accessed. Since
1d09ba0d2ed3 (narrow: move remaining narrow-limited dirstate walks to
core, 2018-10-01) and a few commits before it, we now longer restrict
repo.dirstate.walk() to the narrowspec. It is instead done at a higher
level (e.g. context.status()). We were running into problems with the
Google-internal extension when importing those commits. The issue was
that the narrowspec was read before the first dirstate access. I
believe the right fix is to instead update the narrowspec when trying
to read it (not when reading the dirstate), so that's what this patch
does.
Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG92fde28860bb: tests: update narrowspec when narrowspec, not dirstate, is accessed
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
tests/test-narrow-expanddirstate.t | ||
---|---|---|
59 | dead assignment? |
Comment Actions
I had forgotten that I had even sent this for review. I have some changes in my repo that I will share in a while (after I've address Yuya's comments on D5278).
dead assignment?