tests: show that debugrebuilddirstate is broken with narrow+sparse

Authored by pulkit.

Description

tests: show that debugrebuilddirstate is broken with narrow+sparse

This adds a test to show that debugrebuildirstate is broken when both narrow and
sparse extensions are enabled.

Differential Revision: https://phab.mercurial-scm.org/D5480

Details