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

Re: upgrading source code in local repository

From: Andy Levy <andy.levy_at_gmail.com>
Date: Fri, 29 Jul 2011 09:53:15 -0400

On Fri, Jul 29, 2011 at 04:19, Brecht Ameije <bam_at_abm.be> wrote:
> Hi,
>
> I'm using svn about one year now, but this issue is something that
> keeps bothering me.
>
> I'm working on a project with embedded devices running busybox.
> As I'm making some changes to the busybox source code (tweaking some
> hard coded parameters rather than changing actual code), I'm keeping
> the busybox sources in my local svn repo.
> I started off with busybox 1.16.1
>
> Now I want to upgrade to the latest busybox 1.18.5
> What I want to do is get the 1.18.5 code with the tweaks that I made to
> the 1.16.1 code.
>
> I can only think of the following way to do it:
> 1] diff original 1.16.1 code (without my changes) and new 1.18.5 code
> 2] patch my 1.16.1-tweaked working copy with the patch created above
> 3] solve any conflicts by hand
> 4] commit the new 1.18.5-tweaked code.
>
> The problem with this, is that the second step can delete/create files
> outside of svn (without using the "svn add"/"svn rm" commands).
> Because a difference between the 1.16.1 and 1.18.5 version includes a
> lot of file name changes (Kbuild and Config.in became Kbuild.src and
> Config.src, these files exist in almost every dir), this leads to a lot
> of manual fixing...
>
> Would there be another way to upgrade the code to the new version?

You have what's referred to as a Vendor Branch, and it's discussed in
the book. http://svnbook.red-bean.com/nightly/en/svn.advanced.vendorbr.html
Received on 2011-07-29 15:54:27 CEST

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.