You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Dirk Hoffmann <dh...@web.de> on 2004/10/15 12:12:43 UTC

deny move to existing directory option

Hi,

I would like to see an additional option with svn move and svn copy 
which would correspond to boolean arguments for svn_client_move and 
svn_client_copy.

The current implementation allows the destination path to exist if it 
represents a directory. In this case the resource named by the 
destination path is moved/copied into the directory. This is common UNIX 
behaviour. Unfortunately there are cases in which this behaviour is not 
appropiate.

One could of course check wheather the destination path already exists 
and perform the move/copy operation only if it doesn't. However 
sometimes it is required to perform the check and the actual operation 
in a single atomic step. For example if somebody wants to give a file or 
directory an automatically generated name and has to check if a 
potential name is already in use.

Only little changes would have to be done to the sources to get this 
feature. I tried it for the move operation.

I would like to hear some comments on this from subversion developers.

Regards
Dirk

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