Skip to content
Snippets Groups Projects
Commit 1a7d901a authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

narrow: avoid looking up dirstate again when editing dirstate

The narrow extension overrides the dirstate editing functions to
restrict paths outside the narrowspec. These overrides access the
dirstate from repo.dirstate instead of using the "self" reference
passed to the overridden functions. I don't see a reason for this and
it caused me problems with a later patch (it caused infinite recursion
when I modified localrepo.dirstate()), so let's change it.

Differential Revision: https://phab.mercurial-scm.org/D4829
parent 43d3b09b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment