dirstate: abstract the reading of the data file in v2 in a method
We will need more changes to avoid some race conditions during read,
so we first isolate the simple logic before making it more complicated.
#require docutils gettext $ $TESTDIR/check-gendoc sv checking for parse errors