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 revision".
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.
Correct.
>
>
> 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: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 9 14:50:33 2005