> 
> **Possible Duplicate:**  
> 
> [How do I return to an older version of our code in Subversion?](https://stackoverflow.com/questions/814433/how-do-i-return-to-an-older-version-of-our-code-in-subversion)  
> 
> 
> 

I was looking at the diff in the commit window on Eclipse (with subclipse) and tried adding a line (by hitting enter) but instead committed by changes without a comment and without me making sure I wanted to commit the things I changed.

This added a commit with no comment and with changes I wasn't sure of to the remote repo. I checked out the previous revision and committed those changes over the commit I made accidentally. 

So now HEAD is the same state as the revision before my accidental commit, but I would like to properly commit my changes now. I'm not sure how, though. When I switch to the accidental revision (to get my changes back), it doesn't let me commit because it says nothing was changed. I'm guessing it's comparing my local files to the revision I checked out, but I need it to compare it to HEAD.

What can I do here?