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

Re: [PATCH] make svnmucc consistently overwrite copy targets

From: Philip Martin <philip_at_codematters.co.uk>
Date: Fri, 07 Nov 2008 02:52:30 +0000

Peter Samuelson <peter_at_p12n.org> writes:

> [kmradke_at_rockwellcollins.com]
>> svnmucc doesn't really document what should happen when the copy
>> target already exists. I agree it would be better to be more
>> consistent with the svn command line.
>>
>> Options I see:
>> 1) Add a --force (or maybe --overwrite) option
>> 2) Add a new action such as CPO, or CPF, OV, OVER
>
> Hmmm, I was going to vote for 2, but it occurs to me that a 'clobber'
> option would be useful also for mv, mkdir, put ... everything but rm.
> So I vote for 1.

The advantage of an overwrite action is that allows the user to more
precisely specify which actions should force. So given something
like:

  svnmucc cp N U1 U2 cp N U3 U2/a

it allows the user to specify that one copy is allowed to overwrite
while the other must not. Achieving that with an option flag is hard.

If we do support overwrite, and I'm not convinced we should, then my
preferred solution would be a new overwrite action that worked for
both files and directories over all RA layers, combined with an extra
check to catch the current directory copy/overwrite bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-11-07 03:52:59 CET

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.