[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: Thu, 06 Nov 2008 22:33:44 +0000

kmradke_at_rockwellcollins.com writes:

> Philip Martin <philip_at_codematters.co.uk> wrote on 11/06/2008 03:56:02 PM:
>>
>> I don't really like either of those, although 2 is better than 1.
>> svnmucc is designed to combine simple commands together, what's wrong
>> with "rm URL1 cp URL2 URL1"?
>
> This fails if URL1 didn't exist, so I need to write a wrapper script
> to check to see if it exists first and then do "rm x cp x y" or
> else do "cp x y"... That makes it painful for me.

Or just try one and if it fails try the other.

> Maybe a third option is to allow rm to fail silently if it doesn't
> exist?

I don't like that either; svnmucc is designed to combine commands,
having an rm silently fail in the middle of a long list is nasty.

>
> I'm flexible, I just want to implement something acceptable...

I think writing a script is the right way to do it.

---------------------------------------------------------------------
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-06 23:34:03 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.