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

Re: creating a branch from an old revision

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-03-09 14:47:19 CET

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.


> 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

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.