You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Etienne Studer <et...@canoo.com> on 2005/01/08 18:38:06 UTC
Automated reverting to former version
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 hope my description is not too confusing...
Any help would be highly appreciated. Thanks.
--Etienne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Automated reverting to former version
Posted by Simon Comeau Martel <ma...@videotron.ca>.
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