You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Larry McVoy <lm...@bitmover.com> on 2011/02/06 22:54:30 UTC

svn update again

Hi, back with another svn question regardling branches.  Beat my head against
this wall for a while and figured someone here would know.

I've been trying to go about doing branch imports a somewhat strange, to svn
it appears, way.  I run a checkout like so:

svn co -r1 file:////ssd1/lm/tcl-subset.svn/branches/core-8-0-5-branch ws

and then I attempt to get the list of revs that touch this branch like so:

svn log -r1:HEAD file:////ssd1/lm/tcl-subset.svn/branches/core-8-0-5-branch

and then I attempt update to each of those revs in the branch like so:

for rev in list_of_revs
do	svn update -r$rev
done

which gets me what I want for the subset of revs that existed before the branch
creation, but not for the revs that are unique to the branch, I get the wrong 
data, I believe from some other branch (maybe the trunk)?

So am I just trying to use svn wrong?    Did I go wrong with the log, is that
not giving revs that touch that branch?

Thanks, yours in svn-not-groking-it-land,
-- 
---
Larry McVoy                lm at bitmover.com           http://www.bitkeeper.com

Re: svn update again

Posted by Gavin Beau Baumanis <ga...@thespidernet.com>.
Hi Larry,

This mailing list is for the discussion of developing Subversion.
Your question would get a armer response if you posted to;
users@subversion.apache.org

Gavin "Beau" Baumanis



On 07/02/2011, at 8:54 AM, Larry McVoy wrote:

> Hi, back with another svn question regardling branches.  Beat my head against
> this wall for a while and figured someone here would know.
> 
> I've been trying to go about doing branch imports a somewhat strange, to svn
> it appears, way.  I run a checkout like so:
> 
> svn co -r1 file:////ssd1/lm/tcl-subset.svn/branches/core-8-0-5-branch ws
> 
> and then I attempt to get the list of revs that touch this branch like so:
> 
> svn log -r1:HEAD file:////ssd1/lm/tcl-subset.svn/branches/core-8-0-5-branch
> 
> and then I attempt update to each of those revs in the branch like so:
> 
> for rev in list_of_revs
> do	svn update -r$rev
> done
> 
> which gets me what I want for the subset of revs that existed before the branch
> creation, but not for the revs that are unique to the branch, I get the wrong 
> data, I believe from some other branch (maybe the trunk)?
> 
> So am I just trying to use svn wrong?    Did I go wrong with the log, is that
> not giving revs that touch that branch?
> 
> Thanks, yours in svn-not-groking-it-land,
> -- 
> ---
> Larry McVoy                lm at bitmover.com           http://www.bitkeeper.com