Better Way To Revert To A Previous SVN Revision Of A File?
Answer : svn merge -r 854:853 l3toks.dtx or svn merge -c -854 l3toks.dtx The two commands are equivalent. Check out "undoing changes" section of the svn book sorry to use up some space on just a reiteration of the previously given answer - but this is something I always end up in trouble with. Let's say I've updated the local files to the latest revision, which is 854. Then, I'd want to get an older revision - the version of the file from few revision earlier, say revision 851. Copy would work: svn copy -r 851 svn+ssh://<repository URL>/l3toks.dtx ./l3toks.dtx .. however, I can't be bothered grepping for the repo URL :) Update seemingly might work: svn up -r 851 ./l3toks.dtx ... however, it also marks the local copy as "freshly checked out", or rather "same as online revision" (i.e. in Tortoise/RabbitVCS you get a green OK checkmark) - which means you cannot do svn ci -m "rolled back to r 851" : simp...