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

deny move to existing directory option

From: Dirk Hoffmann <dh.discuss_at_web.de>
Date: 2004-10-15 14:12:43 CEST


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

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

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.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 15 14:13:01 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.