enforce-single-head = yes prevents commit, although there are no multiple heads

Sushil Khanchi sushilkhanchi97 at gmail.com
Thu Dec 24 11:34:53 UTC 2020


On Thu, Dec 24, 2020 at 1:56 PM Uwe Brauer <oub at mat.ucm.es> wrote:

> >>> "SK" == Sushil Khanchi <sushilkhanchi97 at gmail.com> writes:
>
>    > On Sat, Dec 19, 2020 at 1:35 AM Uwe Brauer <oub at mat.ucm.es> wrote:
>    >> >>> "SK" == Sushil Khanchi <sushilkhanchi97 at gmail.com> writes:
>    >>
>    >> > On Thu, Dec 17, 2020 at 6:45 PM Uwe Brauer <oub at mat.ucm.es> wrote:
>    >> >>
>    >> >> > On Thu, Dec 17, 2020 at 2:03 PM Uwe Brauer <oub at mat.ucm.es>
> wrote:
>    >> >>
>    >> >> > Yes, if the working directory parent has an active topic `hg
>    >> heads` gives
>    >> >> > an incorrect result. There is a Merge Request to fix this which
>    >> will be
>    >> >> > merged soon. See
>    >> >> > https://foss.heptapod.net/mercurial/evolve/-/merge_requests/286
>    >> >>
>    >> >> That also may explain why
>    >> >> enforce-single-head = yes prevents commit
>    >>
>
>    > To be clear, you are using "experimental.single-head-per-branch=yes",
>    > right? Or there is this (enforce-single-head) config option as well,
> which
>    > I am not aware of?
>
> I am confused
>
>  hg help -e topic shows me
>
>
> [experimental]
> enforce-single-head = yes
>
> From  the rest of the documentation I conclude that this is the right
> setting. Either the documentation is wrong here or there is another
> variable that is not mentioned in the documentation.
>
> Oh yes, you are right about the config option name (I didn't look into the
evolve repo). Sorry, I am not familiar with this config option so can't say
anything.

Before continuing the discussion:
>
>
> I just found out that Helix, does not
> support evolve, it is not clear to me where this variable has to be set,
> in remote or in local, but since Helix does not support evolve maybe it
> makes little sense to use this variable?

Not sure about this one either.

>
> regards
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20201224/3a73f92b/attachment-0002.html>


More information about the Mercurial mailing list