Subrepos question

Didly didlybom at gmail.com
Thu Jan 20 03:41:43 CST 2011


On Thu, Jan 20, 2011 at 8:42 AM, Martin Geisler <mg at aragost.com> wrote:

> Mads Kiilerich <mads at kiilerich.com> writes:
>
> > Keith Gardner wrote, On 01/19/2011 06:16 PM:
> >>
> >> Is there a way to have a subrepo specified in the .hgsub point to a
> >> named branch?  I know that a user can do it with a script afterwards
> >> but I am looking for native support in mercurial.
> >
> > You might however be asking for a way to say "whoever checks out the
> > outer repo should get the latest revision of repo X on branch Y". That
> > is intentionally not possible with Mercurial. Mercurial is a tool for
> > controlling versions and ensuring that the working directory content
> > is tracked and 100% reproducible. Updating to the latest revision
> > (which then should be tracked) must be done manually or by scripts.
> > There might be some demand for an extension for automating that, but
> > nobody has needed it enough to write it.
>
> I wrote an extension for my client that does this:
>
>  http://mercurial.selenic.com/wiki/OnsubExtension
>
> It executed a command on each subrepository.
>
> --
> Martin Geisler
>

This is a very cool and useful extension Martin!

I have a question though. Are the commands applied recursively to the
subrepos within the subrepos?

Angel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20110120/07da3aa7/attachment.htm>


More information about the Mercurial mailing list