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

Uwe Brauer oub at mat.ucm.es
Fri Dec 18 19:59:19 UTC 2020


>>> "GR" == Georges Racinet <georges.racinet at octobus.net> writes:

   > On 12/17/20 8:46 AM, Uwe Brauer wrote:
   >> Hi
   >> 
   >> 
   >> I am not sure whether I will be able to produce a script that can
   >> reproduce the error described below because it occurs on a repository 
   >> with some 800 changesets and various branches
   >> 
   >> When I tried 
   >> 
   >> [experimental]
   >> enforce-single-head = yes
   > For the record, it is activated by default server-side in Heptapod [1].
   >> 
   >> On a small repository it did what I exspected, namely it prevented me by
   >> using say topics to create multiple heads on a branch.

   > This is already odd : with evolve and topic active, the "single head" is
   > assessed per branch/topic combination.

I check this again and try to provide a minimal example.


   >> However when I used this setting on  this huge repository and tried to
   >> commit I obtained 
   >> 
   >> Waiting for Emacs...
   >> transaction abort!
   >> rollback completed
   >> note: commit message saved in .hg/last-message.txt
   >> abort: 3 heads on "default"
   >> (cbf9827aaa0b, c5126e027526, aa50036267da)
   >> 
   >> So I deleted the option and commited again, however when running 
   >> hg heads
   >> 
   >> It returned one head not three 
   >> 
   >> Can anybody please enlighten me?
   > Do you have bookmarks perhaps?

No, I don't use bookmarks on mercurial only repositories [1]


Footnotes:
[1]  I do this only if I am forced to use it like with hg-git

-------------- 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/ad4b6f51/attachment.p7s>


More information about the Mercurial mailing list