all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Christopher Baines <mail@cbaines.net>
Cc: 70456@debbugs.gnu.org, steve@futurile.net
Subject: bug#70456: Request for merging "core-updates" branch
Date: Sat, 20 Apr 2024 12:16:03 -0400	[thread overview]
Message-ID: <87bk64j9h8.fsf@gmail.com> (raw)
In-Reply-To: <877cgt47a1.fsf@cbaines.net> (Christopher Baines's message of "Fri, 19 Apr 2024 18:00:22 +0100")

Hi,

Christopher Baines <mail@cbaines.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> I'm also really confused by what commits appear to be on the branch,
>> take 12b15585a75062f3fba09d82861c6fae9a7743b2 which appears to be one
>> core-updates, but it's a duplicate of
>> e2a7c227dea5b361e2ebdbba24b923d1922a79d0 which was pushed to
>> master. Same with this commit 28d14130953d868d4848540d9de8e1ae4a01a467,
>> which is different to f29f80c194d0c534a92354b2bc19022a9b70ecf8 on
>> master.
>
> I've worked out at least when these two werid commits turned up on
> core-updates.
>
> 12b15585a7 is mentioned here:
>   https://lists.gnu.org/archive/html/guix-commits/2023-09/msg00955.html
>
> and 28d1413095 is mentioned here:
>   https://lists.gnu.org/archive/html/guix-commits/2024-03/msg00381.html
>
>
> With the changes last month in March, I was going to suggest deleting
> the branch and then re-creating from f205179ed2 and trying to re-apply
> the changes that should be on core-updates, while avoiding any
> "duplicate" commits. However, I'm not even sure where to being with the
> ~5000 commits pushed in September, at least one of them is a duplicate
> of a commit on master, but I'm not sure how many of the other ~5000 are.
>
> For comparison, I did a merge of master in to core-updates today, and
> this is what it shows up like on guix-commits:
>
>   https://lists.gnu.org/archive/html/guix-commits/2024-04/msg01209.html
>
> There are only two new revisions, the ed update I pushed, and the merge
> commit, which is what a merge should look like as far as I'm aware.

I think probably what happened is that in the middle of a merge of
master -> core-updates (which entails sometimes painful conflicts
resolution), a new commit pushed to core-updates, and to be able to push
the resulting local branch (including the thousands of commits from the
merge commit) got rebased on the remote core-updates.

Perhaps another merge commit appeared on the remote around the same
time, which would explain the duplicates.

While I agree it's messy to have 5000 of duplicated commits, I'm not
sure attempting to rewrite the branch, which has seen a lot of original
commits, is a good idea (it'd be easy to have some good commits fall
into cracks, leading to lost of work).

I'd rather we take this experience as a strong reminding that rebasing
merge commits should be avoided at all costs (git already issues a
warning, IIRC).  As you suggested, the next time a situation like this
happens (locally prepared merge commit with new commits made to the
remote branch), merging the remote into the local branch is probably a
nicer solution.

-- 
Thanks,
Maxim




  reply	other threads:[~2024-04-20 16:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18 14:56 bug#70456: Request for merging core-updates branch Steve George
2024-04-19 14:42 ` bug#70456: Request for merging "core-updates" branch Christopher Baines
2024-04-19 17:00   ` Christopher Baines
2024-04-20 16:16     ` Maxim Cournoyer [this message]
2024-04-20 18:08       ` Christopher Baines
2024-04-22 17:31         ` Maxim Cournoyer
2024-06-22 19:33   ` Christopher Baines
2024-04-26 14:44 ` tumashu
2024-05-08 12:03 ` bug#70456: Process gnome-team before core-updates Christopher Baines
2024-06-14  6:30 ` bug#70456: Request for merging core-updates branch Lars-Dominik Braun
2024-06-14  7:55   ` Guillaume Le Vaillant
2024-06-17 19:53     ` Maxim Cournoyer
2024-06-17 20:19       ` Guillaume Le Vaillant
2024-06-18 12:15         ` Maxim Cournoyer
2024-06-21 15:13       ` Christopher Baines
2024-06-24  4:07         ` Maxim Cournoyer
2024-06-18  2:14 ` bug#70456: core-updates failed package: time 宋文武 via Bug reports for GNU Guix
2024-06-18  7:49   ` bug#70456: core-updates failed package: libfaketime for i686-linux 宋文武 via Bug reports for GNU Guix
  -- strict thread matches above, loose matches on Subject: below --
2024-03-24 11:21 Status of ‘core-updates’ Ludovic Courtès
2024-04-20 11:14 ` Christopher Baines
2024-05-02  7:53   ` bug#70456: Request for merging "core-updates" branch Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bk64j9h8.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=70456@debbugs.gnu.org \
    --cc=mail@cbaines.net \
    --cc=steve@futurile.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.