You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Guido Anzuoni <gu...@kyneste.com> on 2004/12/03 07:58:41 UTC

Restoring previous version

Hi,
I know that this topic has been discussed sime time ago (I have read it 
!!) but I am unable to find the thread.
I have one file that I want to restore to a revision X.
I have done the following:
1) svn delete URL_TO_X
2) svn -r X cp URL_TO_X URL_TO_X

In this way I preserve history.
With
svn -r HEAD:X merge X
I would generate an update that I didn' t want to have.
The problem is that 1) and 2) are server side, so I have an intermediate 
revision, caused by svn delete, that is a little annoying.

Is there a way to do the same in 1 transaction ??

TIA,

Guid.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Restoring previous version

Posted by Dale Worley <dw...@pingtel.com>.
I would expect you could do something like:

svn co URL_TO_X'S_PARENT work-dir
svn delete work-dir/child
svn cp -r X URL_TO_X work-dir/child
svn ci work-dir

Dale

-----Original Message-----
From: news [mailto:news@sea.gmane.org]On Behalf Of Guido Anzuoni
Sent: Friday, December 03, 2004 2:59 AM
To: users@subversion.tigris.org
Subject: Restoring previous version


Hi,
I know that this topic has been discussed sime time ago (I have read it 
!!) but I am unable to find the thread.
I have one file that I want to restore to a revision X.
I have done the following:
1) svn delete URL_TO_X
2) svn -r X cp URL_TO_X URL_TO_X

In this way I preserve history.
With
svn -r HEAD:X merge X
I would generate an update that I didn' t want to have.
The problem is that 1) and 2) are server side, so I have an intermediate 
revision, caused by svn delete, that is a little annoying.

Is there a way to do the same in 1 transaction ??

TIA,

Guid.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org