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

Re: Automated reverting to former version

From: Simon Comeau Martel <martelsc_at_videotron.ca>
Date: 2005-01-08 20:15:53 CET

Etienne Studer wrote:
> Hi
>
> What is the ideal procedure for the following scenario:
>
> I falsely commited a new version of a file. Now I would like to go back
> to the version before the one that I checked in and commit that one
> again as a new version.
>
> What is an elegant way of getting the diff between the current
> checked-in version and the version checked-in before that and applying
> that diff reversely to the local copy so that I have the old version again?

I guess this should do the job:

svn merge -r COMMITTED:PREV file
svn commit file

-- 
Simon Comeau Martel
martelsc@videotron.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jan 8 20:18:01 2005

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.