dirstate: track that changes are pending in a transaction
Nothing is currently broken because if this, but this make the
`_invalidated_context` attribute more accurate.
Being more accurate here will help us later, when dealing with `status` call.
#require docutils gettext $ $TESTDIR/check-gendoc zh_TW checking for parse errors