how to solve a conflicting editing for someone (using backout?), but cannot merge since there is only one head

Uwe Brauer oub at mat.ucm.es
Fri Jun 23 06:49:38 UTC 2023


>>> "PD" == Pierre-Yves David <pierre-yves.david at ens-lyon.org> writes:

> If you want to cancel the backout, you need to backout the backout.

I am not sure I understand your advice. 

A backout is some sort of revert

But I don't want this. I need to merge 
as shown in the below graph changeset 
9 with 6, but hg does not allow me to do this, since there is no head.

 In my understanding merge notice/aborts conflicts
 reverting does not!

So how shall I proceeded

It is about finding and resolving conflicts between these two
changesets. Merge would show it, revert does not.

Or are you propose to use revert, and then check the .orig files for
conflicts and resolve them?



> On 4/6/23 17:38, Uwe Brauer wrote:
>> Hi
>> 
>> Here is the situation. Both users have cloned from server
>> User1 adds a change set (and a conflict) and  his graph looks like
>> 
>> 
>> ◍   changeset:     6:8d6ce4461712
>> │   Branch:        default
>> │    Author:        Uwe Brauer <oub at mat.ucm.es>
>> │    Date:          Thu, 06 Apr 2023 17:17:37 +0200
>> │    Phase:         public
>> │    Summary:       Conflicting edit first line Uwe
>>>> ○  changeset:     5:efbf9d1c253b
>> │  Branch:        default
>> │  Author:        Uwe Brauer <oub at mat.ucm.es>
>> │  Date:          Thu, 06 Apr 2023 17:16:37 +0200
>> │  Phase:         public
>> │  Summary:       5: Six
>> 
>> User2
>> 
>> 
>> ◍    changeset:     6:6c83e932468f
>> │    Branch:        default
>> │    Author:        Elena <elena at somwhere.es>
>> │    Date:          Thu, 06 Apr 2023 17:18:47 +0200
>> │    Phase:         public
>> │    Summary:       Conflicting edit Elena
>>>> ○  changeset:     5:efbf9d1c253b
>> │  Branch:        default
>> │  Author:        Uwe Brauer <oub at mat.ucm.es>
>> │  Date:          Thu, 06 Apr 2023 17:16:37 +0200
>> │  Phase:         public
>> │  Summary:       5: Six
>> 
>> Now
>> 
>> 1. User1 pushes first.
>> 
>> 2. User2 wants to push, can't try to pull and merge (or fetch) but
>> since there is a conflict, merge is aborted.
>> 
>> 3. User1 then backout his change set and pushed again.
>> 
>> 4. User2 can now pull and merge successfully, and push again.
>> 
>> 5. User1 pulls and tries to merge the conflicting editing.
>> 
>> However
>> 
>> The graph for user1 looks now:
>> 
>> 
>> ○  changeset:     9:61f9d9f6da29
>> │╲   tag:           tip
>> │ │  Remote_Branch: default/default
>> │ │  Branch:        default
>> │ │  Author:        Uwe Brauer <oub at mat.ucm.es>
>> │ │  Date:          Thu, 06 Apr 2023 17:22:10 +0200
>> │ │  Phase:         draft
>> │ │  Summary:       Automated merge with file:///home/oub/HGTest/Backout/Test/Server
>> │ │
>> │ ○  changeset:     8:6c83e932468f
>> │ │  Branch:        default
>> │ │  Author:        Elena <elena at somewhere.es>
>> │ │  Date:          Thu, 06 Apr 2023 17:18:47 +0200
>> │ │  Phase:         public
>> │ │  Summary:       Conflicting edit Elena
>> │ │
>> ○ │  changeset:     7:5b1c81ac4fe4
>> │ │  Branch:        default
>> │ │  Author:        Uwe Brauer <oub at mat.ucm.es>
>> │ │  Date:          Thu, 06 Apr 2023 17:20:08 +0200
>> │ │  Phase:         public
>> │ │  Summary:       Backed out changeset 8d6ce4461712: Now Elena might push
>> │ │
>> ◍ │  changeset:     6:8d6ce4461712
>> │╱   Branch:        default
>> │    Author:        Uwe Brauer <oub at mat.ucm.es>
>> │    Date:          Thu, 06 Apr 2023 17:17:37 +0200
>> │    Phase:         public
>> │    Summary:       Conflicting edit first line Uwe
>> 
>> 
>> The he wants to merge change set 9 with 6, but that is rejected since it
>> is on the same branch and there is no head.
>> 
>> Any ideas how to proceed?
>> 
>> No topics are set (otherwise I could use
>> topic.linear-merge = allow-from-bare-branch
>> 
>> Shall I create new branch using evolve, seems quite heavy?
>> 
>> 
>> 
>> Thanks
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at lists.mercurial-scm.org
>> https://lists.mercurial-scm.org/mailman/listinfo/mercurial

-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the NATO membership of the Ukraine.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
-------------- 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/20230623/253a3a69/attachment.p7s>


More information about the Mercurial mailing list