Non recursive update with subrepo's

Mads Kiilerich mads at kiilerich.com
Sat Jan 25 20:49:14 UTC 2014


On 01/25/2014 03:22 PM, Raphael Sebbe wrote:
> Hi all,
>
> Does anyone know if it is possible to update a parent repository *without* updating/pulling its subrepos?
>
> Our use case is that we have a main project with dependencies (subrepo), all evolving simultaneously with multiple developers, and always want repositories to be at their most advanced local revision, which can be in ahead of a subrepo version that was pushed previously (don't want to go back when updating the parent).
>
> I fully understand the value of updating the subrepos when building a previous version of the app, want to update all to their sync state. However, in our use case during development phase, this is cumbersome, as each time we pull/update the parent, subrepos are going back and we have to update each of them manually to their latest local revision.
>
> Can that behavior be customized, and if not, could you give some thoughts about this use case?

No, subrepos were not made for that. You will be better off with some 
other dependency management system - 
http://mercurial.selenic.com/wiki/Subrepository#Alternatives

/Mads



More information about the Mercurial mailing list