Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete remote commit from bitbucket mercurial repository

Tags:

How to delete a remote commit from bitbucket mercurial repository?

Findings: I could not found "Repository management" in the "Admin" section. which is mentioned in this answer. Is this feature deprecated/dropped from bitbucket? If not where it is? Note that I am owner of the repository.

Note for expert! only: Remember I have already pushed my commit to bitbucket. I know deleting commit is not good, I am not interested to a backout my history by adding an extra commit. Moreover I can ensure you that someone will strip the commit manually from every local clone of this repo. So you don't have to be worried about this.

like image 615
Nafeez Abrar Avatar asked Feb 26 '15 06:02

Nafeez Abrar


People also ask

How do I cancel my Mercurial repository?

Jonathan: Removing it is quite proper. We try to keep simple things simple in Mercurial: hg init creates . hg for you, and rm -r . hg will undo that.


1 Answers

On BitBucket, go to the overview page for the repository you're talking about.

There is a menu down the left hand side and at the bottom of it is an entry called Settings, click on that.
Then on the settings page there's an entry called Strip Changesets or Strip commits where you can specify the revision to strip.

Remember that if the changeset you want to remove has child changesets that those will be stripped too.

like image 142
Nanhydrin Avatar answered Sep 28 '22 04:09

Nanhydrin