Thanks for the reply.
Might I suggest a clarifying comment in the book and/or command help.
If I understand you correctly, if the first argument to svn copy is a
then the revision argument is ignored and it uses whatever mixture of
might have in the WC (otherwise, if the first argument is a URL, the
revision argument is used
with a default of HEAD).
> -----Original Message-----
> From: Ben Collins-Sussman [mailto:email@example.com]
> Sent: Wednesday, March 09, 2005 8:47 AM
> To: Charles Doucette
> Cc: 'subversion' Users
> Subject: Re: creating a branch from an old revision
> On Mar 8, 2005, at 2:28 PM, Charles Doucette wrote:
> > Given the 2 versions of copy where the first argument is a WC:
> > WC -> WC
> > Copy and schedule an item for addition (with history).
> > WC -> URL
> > Immediately commit a copy of WC to URL.
> > the question is what is the default revision used?
> If the source of a copy is a working copy, then the "mixed revisions"
> in the working copy are what you end up with. It's generally
> very slow to do a WC->WC copy; it's faster to do a WC->URL
> copy. Read about
> WC->URL copies in the section of chapter 4 titled "Making a Complex
> Tag." There's really no difference between tags and
> branches, so in your case, a WC->URL copy would be "making a
> complex branch".
> > Is it the current revision of the working copy (since that is where
> > you are copying from)?
> Unless you just ran 'svn up', there isn't a single "current
> You usually have multiple revisions in a working copy.
> > In the case of copying URL to either URL or WC, it makes sense that
> > the default revision is HEAD unless you specify otherwise.
> > p.s. The simplest answer might be to just do:
> > svn copy -r oldrev URL1 URL2
> Yes, that's by far the simplest and fastest thing to do.
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Thu Mar 10 16:32:50 2005