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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With