* merge conflict tedium
@ 2019-01-07 20:00 Glenn Morris
2019-01-07 20:59 ` Michael Albinus
0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2019-01-07 20:00 UTC (permalink / raw)
To: emacs-devel
Hi,
I have set up automatic merging of the emacs-26 branch to master some
time ago. I feel like I quite often have to intervene due to needless
merge conflicts that can't be resolved automatically but could have been
avoided with a little effort.
Today's problems were caused by:
1) 08840f2
Unlabelled backport of a year old commit from master?
Adding an explicit "backport" or "cherry-pick" message to the commit would
have avoided this.
2) 536e6de and 13b586d, and b513feb
Conceptually the same commit (?), but made on different branches without
any indication, coupled with a simultaneous reformat on master. Changing
the same code on multiple branches at the same time is a PITA. Please
merge it yourself if doing that.
End of complaint! :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: merge conflict tedium
2019-01-07 20:00 merge conflict tedium Glenn Morris
@ 2019-01-07 20:59 ` Michael Albinus
2019-01-07 21:10 ` Michael Albinus
2019-01-08 0:57 ` Paul Eggert
0 siblings, 2 replies; 7+ messages in thread
From: Michael Albinus @ 2019-01-07 20:59 UTC (permalink / raw)
To: Glenn Morris; +Cc: emacs-devel
Glenn Morris <rgm@gnu.org> writes:
> Hi,
Hi Glenn,
> Today's problems were caused by:
> 1) 08840f2
> 2) 536e6de and 13b586d, and b513feb
All of these commits are mine, and I'm very sorry for that. It happens
again and again that I forget the "don't merge" idiom in the commit
message, and even if I recognize it after the commit (it happens), I
don't know how to add it after a push. Is there something I could do?
> Conceptually the same commit (?), but made on different branches without
> any indication, coupled with a simultaneous reformat on master. Changing
> the same code on multiple branches at the same time is a PITA. Please
> merge it yourself if doing that.
It is not intended to be merged. After the crewation of Emacs 26.1.91,
I've seen on emba, that the code I've resolved in the morning in the
master branch, needed to be adapted also in the emacs-26 branch. A
cherry pick wasn't possible, so the looks-like-identical merge. Again, I
forgot to say "don't merge".
Do we have any other mean, to handle such situations? The current
workflow requires to add the proper wording during commit. I cannot
promise this will always work, so some more robust approach would be
welcome.
> End of complaint! :)
You have all rights to complain! I'm very sorry about.
Best regards, Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: merge conflict tedium
2019-01-07 20:59 ` Michael Albinus
@ 2019-01-07 21:10 ` Michael Albinus
2019-01-11 1:06 ` Glenn Morris
2019-01-08 0:57 ` Paul Eggert
1 sibling, 1 reply; 7+ messages in thread
From: Michael Albinus @ 2019-01-07 21:10 UTC (permalink / raw)
To: Glenn Morris; +Cc: emacs-devel
Michael Albinus <michael.albinus@gmx.de> writes:
Hi Glenn,
> Do we have any other mean, to handle such situations? The current
> workflow requires to add the proper wording during commit. I cannot
> promise this will always work, so some more robust approach would be
> welcome.
Maybe it is possible, to ask in the *release-branch*, whether this
shall be merged to master. Interactively, when committing. This sole
question would be sufficient, at least for me.
Best regards, Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: merge conflict tedium
2019-01-07 20:59 ` Michael Albinus
2019-01-07 21:10 ` Michael Albinus
@ 2019-01-08 0:57 ` Paul Eggert
2019-01-11 1:05 ` Glenn Morris
1 sibling, 1 reply; 7+ messages in thread
From: Paul Eggert @ 2019-01-08 0:57 UTC (permalink / raw)
To: Michael Albinus, Glenn Morris; +Cc: emacs-devel
On 1/7/19 12:59 PM, Michael Albinus wrote:
> It happens
> again and again that I forget the "don't merge" idiom in the commit
> message, and even if I recognize it after the commit (it happens), I
> don't know how to add it after a push. Is there something I could do?
I've made that mistake myself, and the simplest fix I thought of was to
immediately merge the emacs-26 branch myself to master, making sure that
I handle the mistake correctly during the merge.
If you don't know how to do such a merge, now's a good time to learn....
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: merge conflict tedium
2019-01-08 0:57 ` Paul Eggert
@ 2019-01-11 1:05 ` Glenn Morris
0 siblings, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2019-01-11 1:05 UTC (permalink / raw)
To: Paul Eggert; +Cc: Michael Albinus, emacs-devel
Paul Eggert wrote:
> I've made that mistake myself, and the simplest fix I thought of was
> to immediately merge the emacs-26 branch myself to master, making sure
> that I handle the mistake correctly during the merge.
I think that's the best solution.
None of this is a big deal! :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: merge conflict tedium
2019-01-07 21:10 ` Michael Albinus
@ 2019-01-11 1:06 ` Glenn Morris
2019-01-14 16:39 ` Michael Albinus
0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2019-01-11 1:06 UTC (permalink / raw)
To: Michael Albinus; +Cc: emacs-devel
Michael Albinus wrote:
> Maybe it is possible, to ask in the *release-branch*, whether this
> shall be merged to master. Interactively, when committing. This sole
> question would be sufficient, at least for me.
Maybe that is a check you could implement locally for your use, but I
really wouldn't worry about it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: merge conflict tedium
2019-01-11 1:06 ` Glenn Morris
@ 2019-01-14 16:39 ` Michael Albinus
0 siblings, 0 replies; 7+ messages in thread
From: Michael Albinus @ 2019-01-14 16:39 UTC (permalink / raw)
To: Glenn Morris; +Cc: emacs-devel
Glenn Morris <rgm@gnu.org> writes:
> Michael Albinus wrote:
>
>> Maybe it is possible, to ask in the *release-branch*, whether this
>> shall be merged to master. Interactively, when committing. This sole
>> question would be sufficient, at least for me.
>
> Maybe that is a check you could implement locally for your use, but I
> really wouldn't worry about it.
I've ended up in a private function for `vc-before-checkin-hook'.
Best regards, Michael.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-01-14 16:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-07 20:00 merge conflict tedium Glenn Morris
2019-01-07 20:59 ` Michael Albinus
2019-01-07 21:10 ` Michael Albinus
2019-01-11 1:06 ` Glenn Morris
2019-01-14 16:39 ` Michael Albinus
2019-01-08 0:57 ` Paul Eggert
2019-01-11 1:05 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).