you may want to take a look at http://www.kernel.org/pub/software/scm/git/docs/git-submodul.... mercurial lacks this as of now.
http://www.selenic.com/mercurial/wiki/index.cgi/ForestExtens...
Not sure why there are no docs in the hgforest repository though - that seems like a pretty big oversight.