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

Re: Replacing a directory in WC/Repos

From: Alan Barrett <apb_at_cequrux.com>
Date: 2006-02-17 17:00:39 CET

On Fri, 17 Feb 2006, Ryan Schmidt wrote:
> On Feb 17, 2006, at 11:24, Jojakim Stahl wrote:
> >Because you cannot svn rm and svn cp/mv in one transaction
> >directly in the repository, am I right?
>
> I don't know. Have you tried?

The client/server protocol allows you to do it all in one transaction.
Whether your client lets you do it depends on the client.

Using the "svn" command line client, you need to do the delete and the
copy in two separate transactions. For example,

    svn delete -m "delete file" http://server/repo/file
    svn copy -m "replace file with a copy of otherfile" \
        http://server/repo/otherfile http://server/repo/file

However, using the "mucc" command line client, you can do it all
in one transaction. For example,

    mucc -m "delete file and replace it with a copy of otherfile" \
        rm http://server/repo/file \
        cp 1234 http://server/repo/otherfile http://server/repo/file

> If you mean with URLs, without a working copy, then you're probably
> right. In a working copy, I thought you could do this.

In a working copy, the "svn" client won't let you do that. I think this
limitation has been removed in the trunk, but it is still present in the
subversion-1.3.0 release.

--apb (Alan Barrett)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 17 17:16:00 2006

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