[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: Dale Worley <dworley_at_pingtel.com>
Date: 2005-02-03 14:23:59 CET

-----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.

Dale

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