[PATCH 0 of 2 rfc] Sticky subrepos

Dirkjan Ochtman dirkjan at ochtman.nl
Tue Jan 25 08:46:09 CST 2011


On Tue, Jan 25, 2011 at 09:51, Erik Zielke <ez at aragost.com> wrote:
> Patch 2 introduces sticky subrepositories.
>
> Sticky subrepositories are that the subrepositories stay at the
> version they are checked out in, if it is not the same as the version
> recorded in .hgsubstate and there is no changes in the subrepository.
> If the version checked out has changed then a warning is printed, that
> the subrepository will not be updated to a different revision, and a
> hint depending on whether there have been changes on top of that.  I
> am not sure what the hint should be for svn and git subrepositories
> and I also think the hints for hg subrepos could be improved.

Can you spell out the use case some more?

The scenario that I would want is a kind of vendor repo (i.e. should
fail on commit with non-clean subrepo, but update substate if changed
on commit, maybe with a note/status). Is this that? I'm confused by
your "will not be updated". Also we probably want some discussion on
how this should be represented in the .hgsub{,state}.

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list