Just right click on the file and select Revert.. as you want to discard your changes.
However in general, if you care about your changes uncommitted workspace update is not recommended. Instead commit your changes first and then rebase or merge after pulling.
- Revert - this removes uncommitted changes. It makes the file contents the same as they are in the latest commit
- Update - this moves the working directory towards the newest topological head on the current branch.
- Rebase - this moves a committed changeset from where it was originally committed so that it becomes based on the target changeset. If in doubt use merge rather than rebase as rebase is an advanced operation.
The problem with uncommitted workspace update is that if there are conflicts there's no easy way to get back to the previous state. If there are conflicts with merge or rebase and you don't want to resolve them now you can press the Abort button in the Mercurial Merge view and it will go back to how it was before.
revert
,rebase
,update
to my language. I don't understand the difference fully and concert not to spoil the source code by doing one of this by mistake. Can you explain a little? Then I would accept your answer. – Ventage