moving non publishing changesets between secret and draft phases and back to secret
Craig Ozancin
c.ozancin at gmail.com
Thu Aug 10 13:00:38 UTC 2023
Secret changeset are just like draft changeset with one difference. While
draft changesets can be shared between related repositories (hg push or hg
pull), secret changesets cannot be shared.
For example, I have two related repositories A and B. On repo A I have one
unique draft changeset and one unique secret changeset. If I push from A to
B (hg push B), the draft changeset will be sent to B. However, the secret
changeset will not be sent because it is secret to repository A.
Also it should be mentioned that any children of a secret changeset must
also be secret.
Craig
On Wed, Aug 9, 2023 at 8:06 PM Friedrich Hagedorn <friedrich_h at gmx.de>
wrote:
> Hello Anton,
>
> many thanks to your explaination about phases.
>
> Am Wed, Aug 09, 2023 at 02:31:37PM -0300 schrieb Anton Shestakov:
> > 09.08.2023 05:39, Mitchell Elutovich пишет:
> > > However for my co-worker, I'm not sure he would let the addition of
> > > auto-publish=abort (or he would perhaps just always use --publish and
> > > defeat the purpose); for his dev repo if I push the changesets (secret
> > > -> draft -> push -> secret ), is there something wrong with switching
> > > them into secret in his dev repo (post the push from my dev repo)
> > > (perhaps also back to secret in mine as well)?
> >
> > The idea behind phases is they always move effortlessly to the lower
> phase
> > (public is lower than draft is lower than secret). During exchange, for
> [...]
> > If you're using secret phase to simply prevent accidentally pushing those
> > commits, maybe it'd be better to use a default revset instead. See `hg
> help
> [...]
>
> But can you additionally explain what is the intended purpose of the
> secret phase?
> While the purpose of the draft/pupblic phase is clear I didnt get the
> point of the secret phase.
>
> Many thanks,
>
> Friedrich
> _______________________________________________
> Evolve-testers mailing list
> Evolve-testers at lists.mercurial-scm.org
> https://lists.mercurial-scm.org/mailman/listinfo/mercurial-evolve-testers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-evolve-testers/attachments/20230810/9602bce8/attachment-0001.html>
More information about the Evolve-testers
mailing list