Discard all and get clean copy of latest revision?
问题 I'm moving a build process to use mercurial and want to get the working directory back to the state of the tip revision. Earlier runs of the build process will have modified some files and added some files that I don't want to commit, so I have local changes and files that aren't added to the repository. What's the easiest way to discard all that and get a clean working directory that has the latest revision? Currently I'm doing this: hg revert --all <build command here to delete the contents