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

Uwe Brauer oub at mat.ucm.es
Fri Dec 18 20:00:44 UTC 2020


>>> "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
   >> 
   >> Also there are no multiple heads?


   > But you see multiple heads if you check them using a revset? If so, then I
   > guess it's doing the right thing.

Do mean with something like 

hg log -r tip -T '{count(revset("head()"))}\n'
   > (Ignore `hg heads` for now, as it is buggy.)

ok
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5673 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20201218/75600527/attachment.p7s>


More information about the Mercurial mailing list