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

Re: how to make a previous repository version the actual one?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-02-03 15:06:39 CET

On Feb 3, 2005, at 7:23 AM, Dale Worley wrote:

> -----Original Message-----
> From: Ben Collins-Sussman [mailto:sussman@collab.net]
>
> On Feb 2, 2005, at 12:30 PM, Dale Worley wrote:
>>
>> # Delete all the files and directories from HEAD
>> svn delete http://repository/root
>> # Copy revision REV into HEAD.
>> svn copy -r REV http://repository/root http://repository/root
>>
>
> This won't work. 'svn copy' doesn't overwrite directories. Like the
> Unix 'cp' command, it creates a new directory underneath the target
> directory when the target directory already exists. So in your example
> above, you'd end up with http://repository/root/root.
> -------------------------
>
> Well, strictly speaking, if the 'svn delete' succeeded, the directory
> in
> question won't exist (in HEAD!), and 'svn copy' won't exhibit this
> behavior.
> As I went on to explain, the question is if the directory in question
> is the
> root of the repository. I haven't checked, but I expect that you can't
> delete it.
>

Ah yes, you're right! Never mind. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 3 15:12:32 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.