localrepo: use dirstate restorebackup instead of copying dirstate manually...
localrepo: use dirstate restorebackup instead of copying dirstate manually
This is one step towards having dirstate manage its own storage. It will
be useful for the implementation of sqldirstate [1].
I'm deleting two of the dirstate.invalidate() calls in localrepo because
restorebackup method does that for us.
[1]
https://www.mercurial-scm.org/wiki/SQLDirstatePlan