Subrepositories always on the latest revision

Mads Kiilerich mads at kiilerich.com
Wed May 18 22:32:37 UTC 2011


Erick Sasse wrote, On 05/18/2011 11:46 PM:
>> The way to do what you ask for is to let the build system or some script do
>> the clones/pulls/updates you want.
> I was considering this. So it is a common practice?

I would say that what you are asking for is neither common practice nor 
best practice. Creating a new blend of sub-projects is usually something 
that should be done carefully. It is usually a more or less manual task 
to create a new blend - or especially the test and review of it and a 
commit that makes the fine blend reproducible. (Updating subrepos is the 
simple part, and the onsub extension can help you do that.)

It is common best practice to use build scripts for setup and processing 
of source code. Mercurial is an excellent version control system and 
should be used for that. It doesn't solve all your problems, but it is 
an excellent component that you can use together with your scripts and 
workflows so you get a solution that fits your needs.

/Mads




More information about the Mercurial mailing list