Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14083

Re: Messed up a salsa commit - Reporting the fix

Path csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Geert Stappers <stappers@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Messed up a salsa commit - Reporting the fix
Date Tue, 26 Apr 2022 13:30:01 +0200
Message-ID <Egryh-bjok-1@gated-at.bofh.it> (permalink)
References <EfQIp-aWgw-3@gated-at.bofh.it> <EfRl7-aWuZ-3@gated-at.bofh.it> <EgqiR-biAP-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Tue Apr 26 11:26:43 2022
Old-Return-Path <stappers@stappers.nl>
X-Amavis-Spam-Status No, score=-11.662 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, LDO_WHITELIST=-5, PGPSIGNATURE=-5, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bakcuih66eqcvfms"
Content-Disposition inline
User-Agent NeoMutt/20170113 (1.7.2)
X-Mailing-List <debian-python@lists.debian.org> archive/latest/19907
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20220426112625.jihrwhhvfisakmaq@gpm.stappers.nl
Approved robomod@news.nic.it
Lines 121
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 26 Apr 2022 13:26:26 +0200
X-Original-Message-ID <20220426112625.jihrwhhvfisakmaq@gpm.stappers.nl>
X-Original-References <YmWsfgh9aGaHTJ/C@d-and-j.net> <20220424204251.u7kqa2cd7xf2sabw@mail.gaussglocke.de> <YmfDbC5Ky2cwF0aN@d-and-j.net>
Xref csiph.com linux.debian.maint.python:14083

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Apr 26, 2022 at 11:03:24AM +0100, Julian Gilbey wrote:
> Hi Timo (and Geert),
 
;-)


> On Sun, Apr 24, 2022 at 10:42:51PM +0200, Timo Röhling wrote:
> > Hi Julian,
> > 
> > * Julian Gilbey <julian@d-and-j.net> [2022-04-24 21:01]:
> > > Somehow I managed to really mess up a commit to python-qtconsole: the
> > > upstream and pristine-tar branches do not have the upstream/5.3.0
> > > sources (the current ones).  However, there's already an
> > > upstream/5.3.0 tag in the repository, pointing to a commit to the
> > > master branch.
> > > 
> > > I think the simplest thing to do is to "rewrite history": delete the
> > > head commits to the master branch and the 5.3.0 tags, and then
> > > recommit correctly and force-push to salsa.
> > > 
> > > Would people be OK with me doing this, or do you have an alternative
> > > suggestion?
> > I looked at the Salsa repository, and it is not so bad. It seems like you
> > forgot to pull the latest changes in upstream and pristine-tar from
> > the 5.2.2 import first, so your import of 5.3.0 forked the those branches
> > unintentionally.
> > [...]
> 
> Thanks for all the advice!  I managed to sort it moderately cleanly in
> the end, and this email records what happened and what I did, in case
> anyone might benefit from this in the future.
> 
> It turns out that I'd also messed up more than I'd realised: even when
> I pulled in the updated master branch, I didn't pull the upstream
> branch, so managed to introduce even more conflicts.  Oh well.
> 
> But the key things that allowed for a moderately clean fix were:
> 
> * I'd correctly used gbp import-orig to pull in the original 5.3.0
>   distribution to the master branch
> 
> * I had an upstream/5.3.0 tag in my local repository (which for some
>   reason I hadn't pushed, yeesh)

Ah


> So the state of the salsa repository was (in an ideal world where I'd
> pulled upstream):
> - master included the upstream/5.3.0 commit, tagged as upstream/5.3.0,
>   along with further commits
> - upstream was at upstream/5.2.2
> - pristine-tar contained data up to upstream/5.2.2
> 
> To fix the problem, I did:
> 
> $ git checkout upstream
> $ git reset --hard upstream/5.3.0

FWIW Here I miss a `git commit -a`

> $ git checkout master
> $ gbp pristine-tar commit
> 
> and that fixed everything.  I finished with
> 
> $ git push --all
> 
> and
> 
> $ git push --tags.
> 

Thanks for reporting, thanks for sharing what was learnt.

> 
> I hope I don't make this mistake again!

No worries, there will be other mistakes  and that is good.
Know that the only way to avoid mistakes is doing nothing.

 
> Best wishes,
>    Julian
 

Groeten
Geert Stappers
DD
-- 
Silence is hard to parse

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Messed up a salsa commit - how best to fix? Julian Gilbey <julian@d-and-j.net> - 2022-04-24 22:10 +0200
  Re: Messed up a salsa commit - how best to fix? Geert Stappers <stappers@stappers.nl> - 2022-04-24 22:10 +0200
    Re: Messed up a salsa commit - how best to fix? Julian Gilbey <julian@d-and-j.net> - 2022-04-24 22:50 +0200
      Re: Messed up a salsa commit - how best to fix? Geert Stappers <stappers@stappers.nl> - 2022-04-25 08:20 +0200
  Re: Messed up a salsa commit - how best to fix? Timo Röhling <roehling@debian.org> - 2022-04-24 22:50 +0200
    Re: Messed up a salsa commit - how best to fix? Timo Röhling <roehling@debian.org> - 2022-04-24 23:00 +0200
      Re: Messed up a salsa commit - how best to fix? Julian Gilbey <julian@d-and-j.net> - 2022-04-24 23:20 +0200
      Re: Messed up a salsa commit - how best to fix? Julian Gilbey <julian@d-and-j.net> - 2022-04-24 23:30 +0200
    Re: Messed up a salsa commit - how best to fix? Julian Gilbey <julian@d-and-j.net> - 2022-04-24 23:20 +0200
    Re: Messed up a salsa commit - how best to fix? Julian Gilbey <julian@d-and-j.net> - 2022-04-26 12:10 +0200
      Re: Messed up a salsa commit - Reporting the fix Geert Stappers <stappers@debian.org> - 2022-04-26 13:30 +0200
        Re: Messed up a salsa commit - Reporting the fix Julian Gilbey <julian@d-and-j.net> - 2022-04-26 14:30 +0200
      Re: Messed up a salsa commit - how best to fix? Timo Röhling <roehling@debian.org> - 2022-04-26 14:00 +0200
        Re: Messed up a salsa commit - how best to fix? Julian Gilbey <julian@d-and-j.net> - 2022-04-26 14:40 +0200

csiph-web