You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jeff Bowden <jl...@houseofdistraction.com> on 2004/01/22 22:48:13 UTC

procedure to merge snapshots from external source

I work on a project where I regularly get code snapshots from an 
external (upstream) source.  My current procedure for merging these 
drops works OK, but it seems like there ought to be a better way. Here's 
what I do:

1. Unpack latest upstream snapshot into /path/to/<newdrop> (<newdrop> == 
snapshot date)
2. svn import /path/to/<newdrop> http://path/to/repository/drops/<newdrop>
3. cd /path/to/workingdir/root/of/external/tree
4. svn merge http://path/to/repository/drops/<lastdrop> 
http://path/to/repository/drops/<newdrop>

There's two problems with this.  The first problem is that I have to 
keep track of what the last drop was.  It's a minor annoyance that I 
have to pay careful attention to this each time.

The second problem is harder:  Dealing with local changes some of which 
get fed back upstream and then subsequently show up in the next 
snapshot?   Currently I make the local changes on a separate branch 
which I abandon at the next snapshot.  This has been OK so far because 
all my changes have been incorporated immediately upstream.  I'm 
dreading what might happen if I need to start maintaining a fork of some 
part of the project (local changes that *don't* get merged upstream).

Anyone have any recommendations or critiques?  Am I missing out on some 
fancy subversion features that would make my life easier?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: procedure to merge snapshots from external source

Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-01-22 at 18:07, Jeff Bowden wrote:

> OK, I've read through that chapter a bit more closely.  It looks like 
> svn_load_dirs might make merging work better.    But apparently I still 
> have to keep track of the tag name of the last merged version?

Yes, I think so.  Svn doesn't do any sort of 'merge tracking' for you.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: procedure to merge snapshots from external source

Posted by Jeff Bowden <jl...@houseofdistraction.com>.
Ben Collins-Sussman wrote:

>On Thu, 2004-01-22 at 16:48, Jeff Bowden wrote:
>  
>
>>Anyone have any recommendations or critiques?  Am I missing out on some 
>>fancy subversion features that would make my life easier?
>>    
>>
>
>Have you read the chapter about 'vendor branches' in chapter 7 of the
>book?  It might be easier to use svn_load_dirs.pl.
>
>  
>

OK, I've read through that chapter a bit more closely.  It looks like 
svn_load_dirs might make merging work better.    But apparently I still 
have to keep track of the tag name of the last merged version?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: procedure to merge snapshots from external source

Posted by Jeff Bowden <jl...@houseofdistraction.com>.
Ben Collins-Sussman wrote:I missed that one,

>On Thu, 2004-01-22 at 16:48, Jeff Bowden wrote:
>  
>
>>Anyone have any recommendations or critiques?  Am I missing out on some 
>>fancy subversion features that would make my life easier?
>>    
>>
>
>Have you read the chapter about 'vendor branches' in chapter 7 of the
>book?  It might be easier to use svn_load_dirs.pl.
>  
>

No I missed that one, I'll have to study it.   Thanks.

I did actually read parts of that book when I was figuring out my 
current procedure but somehow that section title didn't catch my attention.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: procedure to merge snapshots from external source

Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-01-22 at 16:48, Jeff Bowden wrote:

> Anyone have any recommendations or critiques?  Am I missing out on some 
> fancy subversion features that would make my life easier?

Have you read the chapter about 'vendor branches' in chapter 7 of the
book?  It might be easier to use svn_load_dirs.pl.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org