In a repo where some directories are included by narrow and the complement are
excluded by sparse, it was previously impossible to widen either because trying
to widen narrow would complain that the requested files are outside the sparse
checkout and trying to widen sparse would complain that the requested files are
outside the narrow checkout.
This changes the hg tracked --addinclude command to only actually update any
newly accessible files in the dirstate if they are also accessible via sparse.
I was confused by this so I experimented a bit with it myself. It seems that it's hg debugsparse that fails. Could you update the text to clarify that? Alternatively, we could include coverage for the treemanifest case by manually updating .hg/sparse. I checked that that works, which was a bit of a relief (it seems less concerning if it's just the command for updating the sparse profile that fails).