You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by km...@rockwellcollins.com on 2009/01/01 19:11:43 UTC

Re: SVN Copy Question...

Ryan Schmidt <su...@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@subversion.tigris.org].