Can we undo pushed changes in Mercurial?

Viewed 2248

I am using mercurial and have pushed some changes that I have to revert back. I didn't find any way to directly rollback that changes. I can remove my changes and commit it back but that would not be a right way to do that. Can anyone please suggest how I can do that?

2 Answers

hg revert -r .^ file-to-revert followed by hg commit and jf s (if using jelly fish) that will remove the changeset from your diff.

Related