phases and subrepos

Pierre-Yves David pierre-yves.david at
Mon Feb 6 04:10:38 CST 2012

On Fri, Feb 03, 2012 at 02:36:55PM +0100, Angel Ezquerra wrote:
> On Fri, Feb 3, 2012 at 2:12 PM, Pierre-Yves David <pierre-yves.david at> wrote:
> >> Even if we "fixed subrepos" as you say, if a revision in the parent
> >> repo is marked as public, then the corresponding subrepo revisions
> >> should be marked as public as well. If the parent repo revision is
> >> immutable, the subrepo history it depends on must be immutable as
> >> well. It does not make sense to have immutable parent repo revisions
> >> depending on draft or secret subrepo revisions.
> >
> > I Perfectly agree on this point
> Great!

To implement that, we need to:

    (1) detect that a changeset move to public,
    (2) search for subrepo references,
    (3) set subrepo references public too

We do not have hooks mechanism for phase yet and (1) probably depends on it.

(2) on many changeset may be costly. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <>

More information about the Mercurial-devel mailing list