> From: Tom Cruickshank [mailto:tcruicksh_at_gmail.com]
> Hey Guys,
> I'm trying to figure out how to revert a file committed into svn to
> Let's say I have a file called /customers/index.php currently at revision
> and would like to go back to revision 100.
> it's the only file I would like to revert. What arguments might I need to
> accomplish this?
svn rm ./foo
svn cp -r 100 foo ./foo
What you've done is delete the file which was created by all the changes
from 100 to 150. Then you've restored rev 100, and commit rev 151. Now, if
you "svn log foo" you'll see the history of the file up to rev 100, and then
a jump directly to 151, skipping all the changes from 101 to 150. You've
basically chopped off the branch that led to a bad file, and re-grafted a
good branch in its place.
If you want to see the bad version again, you could always checkout rev 150.
All the info still exists in repo. But you've deleted that file, and
replaced it with another file having the same name, and part of the same
Received on 2010-11-16 03:16:36 CET