Mercurial — revert back to old version and continue from there

I’m using Mercurial locally for a project (it’s the only repo there’s no pushing/pulling to/from anywhere else). To date it’s got a linear history. However, the current thing I’m working on I’ve now realized is a terrible approach and I want to go back to the version before I started it and implement it a … Read more

git status shows modifications, git checkout — doesn’t remove them

I would like to remove all changes to my working copy. Running git status shows files modified. Nothing I do seems to remove these modifications. E.g.: rbellamy@PROMETHEUS /d/Development/rhino-etl (master) $ git status # On branch master # Changed but not updated: # (use “git add <file>…” to update what will be committed) # (use “git … Read more

How do I revert an SVN commit?

I have found various examples of how to revert an SVN commit like svn merge -r [current_version]:[previous_version] [repository_url] or svn merge -c -[R] . But neither of them seems to work. I tried those commands and checked the files that were changed by hand. How do I revert a commit with revision number 1944? How … Read more