2

I use mercurial with hg-git extension and I can't delete a remote github branch (bookmark) with it. I read that it was not possible with this extension, is there any other mercurial extension or modified version of hg-git which could get the job done?

Karichi
  • 55
  • 7
  • Welcome to Stack Overflow. Please read about [asking questions](https://stackoverflow.com/help/asking). It might be a good idea to [edit] the question afterwards so that it doesn't appear that you are asking for a tool recommendation. – Jason Aller Jan 28 '22 at 02:05
  • Just to clarify, are you trying to delete a git branch from the hg side of things? Or delete an hg bookmark from the hit side of things? – StayOnTarget Jan 28 '22 at 13:10
  • I have a bookmark that I have pushed to a github repo, and I'm not able to delete it from github using hg-git. – Karichi Jan 28 '22 at 14:48

1 Answers1

0

While this isn't possible in the currently-released versions, the next feature release — probably 1.1 — adds support for that. If you check out the default branch of hg-git, you can use hg push -B somebookmark, and use that to either only publish that bookmark, or delete it remotely if it doesn't exist locally.

  • My version of hg-git allows -B, but when I try to push a locally-deleted bookmark it fails with `abort: revision 000000000000 cannot be pushed since it doesn't have a bookmark`. – Vlad Firoiu Dec 28 '22 at 15:06