Reputation: 4007
I did a search it said to view the log, right click the revision I want to go back to and select revert to this revision but I always get this error:
Cannot reverse-merge a range from a path's own future history; try updating first
Upvotes: 7
Views: 7434
Reputation: 83599
Note that you cannot undo a commit in the sense of completely removing it from the repository.
What you can do is to get the state before the commit, and check that in as the current state. This is probably what you found in your search, and what Ben Lings's answer refers to.
Other than that, Ben Lings is correct. Update your working copy, then retrieve the old version (that is the "revers-merge" part), then commit that.
Upvotes: 0
Reputation: 12478
Have you tried doing an update (on your checked out copy) first?
Upvotes: 0
Reputation: 29403
You need to Update
your working copy first. You will then be able to revert the revision.
Upvotes: 13