Search code examples
svnrevert

svn revert failing


Why is svn's revert failing for me?

I'm trying to revert to version 6253.

$ svn revert 6253
Skipped '6253'

I know this is the version I want because I typed the following in to the shell less than an hour ago:

$ svn commit -m "before making change X"
Sending        scala/Config.scala
Sending        scala/Entity.scala
Transmitting file data ............
Committed revision 6253.

I think something is wrong with the repository because I don't see my commit message when I type svn log. All I see is the first 3 commits, which end at r5650.


Solution

  • svn revert throws away local changes to your working copy, so will not do what you want, as the changes are already committed.

    To get those files at that specific revision, try svn update -r 6253 scala/Config.scala scala/Entity.scala instead.