hg-git: delete a git-branch with git, hg: pull or clone (again)
Uwe Brauer
oub at mat.ucm.es
Wed Jul 24 07:29:09 UTC 2024
Hi
I CC this to the mercurial list since there are also hg-git users, that
might not read the hg-git mailing list that often.
I never tried this before.
1. I have a git repository
2. I cloned it with hg-git but using the standard setting that is,
git branches are imported as bookmarks
3. I deleted a git branch on remote: git push origin --delete mac_init
4. Then I either pulled or cloned again.
The graph is different:
Cloned
--8<---------------cut here---------------start------------->8---
◉ changeset: 455:3444801bb05e
│ Branch: default
│ Author: Eric Ludlam <eric at siege-engine.com>
│ Date: Fri, 27 Dec 2019 17:13:49 -0500
│ Phase: public
│ Summary: matlab-shell.el:
│
○ changeset: 454:1c3b3a2f9e37
│╲ Branch: default
│ │ Author: Uwe Brauer <oub at mat.ucm.es>
│ │ Date: Mon, 23 Dec 2019 21:12:23 +0100
│ │ Phase: public
│ │ Parent: 452:ee916a730867
│ │ Parent: 453:58941b964824
│ │ Summary: Merge the sourceforge master branch into the github master branch.
│ │
--8<---------------cut here---------------end--------------->8---
Pulled
--8<---------------cut here---------------start------------->8---
◉ changeset: 455:5771ddf2e50d
│ tag: delete-book
│ Branch: default
│ Author: Eric Ludlam <eludlam at mathworks.com>
│ Date: Sun, 05 Jan 2020 10:44:25 -0500
│ Phase: public
│ Summary: Patch from John Ciolfi for MAC support for matlab-shell.
│
○ changeset: 454:1c3b3a2f9e37
│╲ Branch: default
│ │ Author: Uwe Brauer <oub at mat.ucm.es>
│ │ Date: Mon, 23 Dec 2019 21:12:23 +0100
│ │ Phase: public
│ │ Parent: 452:ee916a730867
│ │ Parent: 453:58941b964824
│ │ Summary: Merge the sourceforge master branch into the github master branch.
│ │
--8<---------------cut here---------------end--------------->8---
So what is the conclusion. Whenever a git branch is deleted the safest
thing is to clone again?
Regards
Uwe Brauer
--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5684 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20240724/3d6f1b82/attachment.p7s>
More information about the Mercurial
mailing list