Hi,
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?
Best wishes,
Julian
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.0I 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
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?
Make sure that your local upstream branch and the upstream/5.3.0 tagAaaand I copied the wrong commit hash to the email. :/ e228e8902aeb91011a53bb1a91f7f3390a771e0e is the one you should be
both point at commit 08935221b549bf32157d739cd54eb1645a2ab123:
Cheers
Timo
On Sun, Apr 24, 2022 at 09:01:02PM +0100, Julian Gilbey wrote:
Hi,
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,
I'm not OK with rewriting history.
or do you have an alternative suggestion?
Accept the failure, learn from it, move on, make new mistakes, learn from them.
In other words: Do not spend energy on erasing a mistake^Wlearing expirience.
* Timo Rhling <roehling@debian.org> [2022-04-24 22:42]:
Make sure that your local upstream branch and the upstream/5.3.0 tagAaaand I copied the wrong commit hash to the email. :/ e228e8902aeb91011a53bb1a91f7f3390a771e0e is the one you should be
both point at commit 08935221b549bf32157d739cd54eb1645a2ab123:
looking for:
https://salsa.debian.org/python-team/packages/python-qtconsole/-/commit/e228e8902aeb91011a53bb1a91f7f3390a771e0e
* Timo Rhling <roehling@debian.org> [2022-04-24 22:42]:
Make sure that your local upstream branch and the upstream/5.3.0 tagAaaand I copied the wrong commit hash to the email. :/ e228e8902aeb91011a53bb1a91f7f3390a771e0e is the one you should be
both point at commit 08935221b549bf32157d739cd54eb1645a2ab123:
looking for:
https://salsa.debian.org/python-team/packages/python-qtconsole/-/commit/e228e8902aeb91011a53bb1a91f7f3390a771e0e
On Sun, Apr 24, 2022 at 10:09:21PM +0200, Geert Stappers wrote:
On Sun, Apr 24, 2022 at 09:01:02PM +0100, Julian Gilbey wrote:
Hi,
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,
I'm not OK with rewriting history.
or do you have an alternative suggestion?
Accept the failure, learn from it, move on, make new mistakes, learn from them.
In other words: Do not spend energy on erasing a mistake^Wlearing expirience.
I do understand this, but now someone cloning the repository and
running "gbp buildpackage" won't be able to do so.
I realise there is a much more minor change that would fix things:
just delete the upstream/5.3.0 tag, create the upstream/5.3.0
pristine-tar and upstream branch contents manually, make a commit with
those and recreate the upstream/5.3.0 tag to point to those.
Would that be acceptable?
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.
[...]
It turns out that I'd also messed up more than I'd realised: even whenIt's an easy mistake to write "git pull" if you meant to do "gbp
I pulled in the updated master branch, I didn't pull the upstream
branch, so managed to introduce even more conflicts. Oh well.
To fix the problem, I did:Judging from the current commit graph, you probably threw in a
$ git checkout upstream
$ git reset --hard upstream/5.3.0
$ git checkout masterNice!
$ gbp pristine-tar commit
and that fixed everything. I finished with git push --all and git
push --tags.
I hope I don't make this mistake again!Don't worry about it too much. Git is quite resilient, and as long
Hi Julian,
* Julian Gilbey <julian@d-and-j.net> [2022-04-26 11:03]:
It turns out that I'd also messed up more than I'd realised: even whenIt's an easy mistake to write "git pull" if you meant to do "gbp
I pulled in the updated master branch, I didn't pull the upstream
branch, so managed to introduce even more conflicts. Oh well.
pull". I lost count how often I wrote "git pq" by accident...
To fix the problem, I did:
$ git checkout upstreamJudging from the current commit graph, you probably threw in a
$ git reset --hard upstream/5.3.0
"git merge -s ours origin/upstream" here as well?
$ git checkout master
$ gbp pristine-tar commit
and that fixed everything. I finished with git push --all and gitNice!
push --tags.
I hope I don't make this mistake again!Don't worry about it too much. Git is quite resilient, and as long
as you do not panic and start force-pushing random stuff, everything
can be repaired.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 71:51:26 |
Calls: | 8,084 |
Calls today: | 2 |
Files: | 13,069 |
Messages: | 5,849,955 |