I’m using Mercurial and I’ve modified a file in my local computer.
hg status returns
M settings.py
But now I don’t want to commit changes and I want to take back my file before last changes. How can I do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use hg update -C to update all tracked files to the working branch.
If you only want to revert a specific file use hg revert filename