My repository A depends on repository B, so I intend to add B to A as a subrepo. But in fact, A doesn't depend on all of B, just, say on the contents of a subfolder bar/
in the root of the B repository.
Is it possible to indicate that just the subfolder constitutes the subrepo?
Note: This is essentially the same question as
but for mercurial rather than git.