Questions tagged [hg-revert]

Revert changes of a commit in a Mercurial repository

hg revert allows you to restore files to their checkout state within a Mercurial repository.

See also

References

$ hg revert --help
2 questions
41
votes
3 answers

Refetching a locally deleted file from Mercurial

I deleted one of the files that was in my repository locally (just at the file system level, not using hg remove). I now want to get that file back from the repository to my local directory. When I do hg status, it knows that the file is locally…
ScrollerBlaster
  • 1,578
  • 2
  • 17
  • 21
0
votes
2 answers

How to remove a changeset from hg repo without loosing changesets commited after that

I need to remove a changeset say 123b which is somewhere in the middle of several changesets in a branch. I have commited many changesets after 123b. How do I remove the changeset 123b whithout losing recent changes
Vishal
  • 25
  • 3