[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: Charles Doucette <cdoucette_at_cornerstonetech.com>
Date: 2005-03-10 16:28:28 CET

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
WC,
then the revision argument is ignored and it uses whatever mixture of
revisions you
might have in the WC (otherwise, if the first argument is a URL, the
revision argument is used
with a default of HEAD).

Thanks,
Chuck

> -----Original Message-----
> From: Ben Collins-Sussman [mailto:sussman@collab.net]
> 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
> 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 Thu Mar 10 16:32:50 2005

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