I’ve set up a Mercurial repository that has a subversion subrepository. I’ve configured an .hgsub file so that Mercurial is aware of that repository. However, I was expecting that Mercurial could trigger an svn update automatically whenever I did a pull on the repository.
Is this possible with Mercurial subversion repositories? If not, what’s the advantage of having the .hgsub file at all as opposed to placing that subdirectory in .hgignore?
Mercurial does not automatically pull/update subrepos. From
hg help subrepos:Placing the repo in
.hgignorewould not allow you to track which version of the subrepo is compatible/tested with each version of the parent.In SVN terms, this is similar to create an
svn:externallink which is bound to a specific SVN revision.