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

svn copy and nonexisting dirs

From: SteveKing <steveking_at_gmx.ch>
Date: 2003-03-27 19:02:42 CET

Hi,

another request (if I'm getting annoying just tell me):

if I want to make a copy of the wc to a branch and
the directory in the branches tree does not exist yet
then an error is thrown.

working copy is of /trunk/myproject

svn copy myproject http://localhost/svn/repos/branches/myproject/branch1 --message "branch"
svn: RA layer request failed
svn: Commit failed (details follow):
svn: PROPFIND of /svn/repos/branches/myproject: 404 Not Found

the workaround would be to svn mkdir the folder myproject in /svn/repos/branches first,
but that's another 'commit' and needs another log message - so no atomic
operation for that.

So my request would be that subversion creates such folders itself if they don't
exist yet. That would require a function 'mkpath' which creates not only
one folder but a whole tree below a found path (if the path doesn't exist at all
then an error like the above is needed).

what do you think about that?

Stefan
Received on Thu Mar 27 19:04:21 2003

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.