[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

How to revert file to few revisions back?

From: Witold Rugowski <rugowski_at_nhw.pl>
Date: 2006-09-29 12:31:51 CEST

Hi!
I have trouble with one thing in svn. I often want to "go back" a few
revisions of particular file. But when I do

rm FILE
svn update -r SomeOldRevison FILE

after making changes to FILE commit fails with something like
svn: Out of date: 'FILE' in transaction 'SomeNewRevision'

I looked through SVN book, read FAQ and history but find no easy
solution. Currently I do :

rm FILE
svn update -r SomeOldRevison FILE
cat FILE > /tmp/FILE
svn update FILE
cat /tmp/FILE > FILE
rm /tmp/FILE

Is there some other, less cumbersome way to do this?

-- 
Witold Rugowski
http://nhw.pl/wp/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 29 12:32:27 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.