Subrepositories always on the latest revision
Mads Kiilerich
mads at kiilerich.com
Wed May 18 21:42:09 UTC 2011
Erick Sasse wrote, On 05/18/2011 05:22 PM:
> By default hg tracks the revision to use of a subrepository.
> But I'd like to have my subrepositories always on the latest revision,
> is it possible?
Mercurial will not do that for you.
The purpose of Mercurial - with or without subrepos - is to track
directory content and make sure that you can restore previous snapshots.
That wouldn't be possible if it just checked out the latest revision -
especially because Mercurial is distributed and 'latest' might mean
something different to you than to everybody else.
The way to do what you ask for is to let the build system or some script
do the clones/pulls/updates you want.
/Mads
More information about the Mercurial
mailing list