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

Re: SVN Copy Question...

From: <kmradke_at_rockwellcollins.com>
Date: Thu, 1 Jan 2009 13:11:43 -0600

Ryan Schmidt <subversion-2008c_at_ryandesign.com> wrote on 12/26/2008
03:23:45 PM:
> On Dec 26, 2008, at 09:02, BRM wrote:
> > Ok, but is there a single command that does both operations so I
> > don't have to do it in two steps? I'd really like to just do it in
> > one step.
>
> You can issue a single svnmucc command, but you will have to pass
> svnmucc the two subcommands you want to do (remove the one thing,
> copy the other thing). They are separate Subversion operations.

I have on my to-do list a new svnmucc command to "copy and overwrite
if it exists". There was some concern it wasn't needed, since as
stated, you can script to check if it exists and then delete, but
this runs into a big race condition.

> > If not, I think it would make a great feature to add an option to
> > the move/copy to be able to make it do it in one step (example: --
> > remove-file-first, --overwrite, --force).
>
> You can probably write a small script to do this for you if you plan
> to do it often and don't want to keep typing two commands each time.

Funny thing is, internally, Subversion converts a "Copy and Delete"
in the same transaction as a "replace" operation, so it is already
capable of this, it just doesn't expose the functionality via
the command line interface...

Kevin R.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=998755

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-01 20:12:41 CET

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

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