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

RE: Restoring previous version

From: Dale Worley <dworley_at_pingtel.com>
Date: 2004-12-03 15:57:02 CET

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
Received on Fri Dec 3 15:59:50 2004

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.