This seems like one of the most basic things that one might want to do with subversion, but I haven’t been using version control systems for very long and somehow I can’t seem to figure this out and I have no idea where in the svn documentation to look. Basically, revision 167 worked perfectly, but I made a mistake and committed it as revision 168 (and I’m not sure exactly where the mistake is). I ran svn update -r 167 and then svn revert to get my working copy back to revision 167, and everything works again. Now, I want to just start over from here – i.e. make a small change to this working copy and commit it as revision 169, completely ignoring everything that I did on revision 168.
How do I do this? When i try to just commit, tortoise svn gives me an error saying I need to update my working copy before I can commit, and obviously this is not what I want as it will bring me back to revision 168.
Thanks for the help!
http://svnbook.red-bean.com/en/1.5/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.undo – here you can read about this technique in details.
as David Rodríguez – dribeas mentioned you should start with the
HEADrevision. So performsvn upbefore the commands I adviced.