dirstate: move parent state handling in the dirstatemap...
dirstate: move parent state handling in the dirstatemap
This involves dirstatemap data mostly. Moving this one level down will remove
the needs for the dirstatemap to expose some of its internals.
This will help us to simplify more code further.
Differential Revision:
https://phab.mercurial-scm.org/D11505