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

Re: How to revert file to few revisions back?

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2006-09-29 12:33:59 CEST

On 9/29/06, Witold Rugowski <rugowski@nhw.pl> wrote:
> 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?

You need a reverse merge. svn merge -r <laterrev>:<oldrev> file


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:34:27 2006

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