Fix most test failures (except in test-narrow-debugrebuilddirstate.t and
test-upgrade-repo.t) caused by the new entry in config or in .hg/requires
when running run-tests.py --extra-config-opt format.exp-dirstate-v2=1
There is no CI so far for this configuration.
Should you be using stringutil.parsebool instead?