You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Mark Hindess <ma...@googlemail.com> on 2009/06/17 16:16:13 UTC

[build] svn branch/merge tracking

AIUI, as of svn 1.5, if I were to create a new branch with:

  svn copy https://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk \
      https://svn.apache.org/repos/asf/harmony/enhanced/classlib/branches/java7

then svn would automatically track which revisions had been merged and I would
subsequently be able to just run:

  svn merge https://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk

(and resolve conflicts/test/commit) without messing about with revision numbers
in the manner documented for the java6 branch at:

  http://wiki.apache.org/harmony/BranchMerge

Does anyone happen to know:

 a) if this works on the asf infra structure, and/or

 b) how to retrospectively gain support for tracking (ideally without
    destroying the java6 branch and recreating it)

In order to help focus on improving the java6 branch (because we talked
about releasing a milestone based on it a while back), I'd like to do
merges more often.  So making the process simpler would be useful.

Regards,
 Mark.



Re: [build] svn branch/merge tracking

Posted by Mark Hindess <ma...@googlemail.com>.
In message <3b...@mail.gmail.com>,
Nathan Beyer writes:
>
> On Wed, Jun 17, 2009 at 9:16 AM, Mark Hindess
> <ma...@googlemail.com>wrote:
> 
> >
> > AIUI, as of svn 1.5, if I were to create a new branch with:
> >
> >  svn copy https://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk\
> >
> > https://svn.apache.org/repos/asf/harmony/enhanced/classlib/branches/java7
> >
> > then svn would automatically track which revisions had been merged and I
> > would
> > subsequently be able to just run:
> >
> >  svn merge
> > https://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk
> >
> > (and resolve conflicts/test/commit) without messing about with revision
> > numbers
> > in the manner documented for the java6 branch at:
> >
> >  http://wiki.apache.org/harmony/BranchMerge
> >
> > Does anyone happen to know:
> >
> >  a) if this works on the asf infra structure, and/or
> 
> 
> It should - the repo is running SVN 1.6.2.

Excellent.

> >  b) how to retrospectively gain support for tracking (ideally without
> >    destroying the java6 branch and recreating it)
> 
> I think this works based on a SVN property called svn:mergeinfo. From what
> little I've dug into it, SVN will try to build it up, when it doesn't exist
> in some scenarios. I think it can be helped though -
> http://svnbook.red-bean.com/en/1.5/svn.branchmerge.advanced.html.

Ok.  Thanks for your help.  I'll try some tests on a temporary
repository to see if I can figure out what needs to be done.

-Mark.



Re: [build] svn branch/merge tracking

Posted by Nathan Beyer <nb...@gmail.com>.
On Wed, Jun 17, 2009 at 9:16 AM, Mark Hindess
<ma...@googlemail.com>wrote:

>
> AIUI, as of svn 1.5, if I were to create a new branch with:
>
>  svn copy https://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk\
>
> https://svn.apache.org/repos/asf/harmony/enhanced/classlib/branches/java7
>
> then svn would automatically track which revisions had been merged and I
> would
> subsequently be able to just run:
>
>  svn merge
> https://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk
>
> (and resolve conflicts/test/commit) without messing about with revision
> numbers
> in the manner documented for the java6 branch at:
>
>  http://wiki.apache.org/harmony/BranchMerge
>
> Does anyone happen to know:
>
>  a) if this works on the asf infra structure, and/or


It should - the repo is running SVN 1.6.2.


>
>
>  b) how to retrospectively gain support for tracking (ideally without
>    destroying the java6 branch and recreating it)
>

I think this works based on a SVN property called svn:mergeinfo. From what
little I've dug into it, SVN will try to build it up, when it doesn't exist
in some scenarios. I think it can be helped though -
http://svnbook.red-bean.com/en/1.5/svn.branchmerge.advanced.html.


>
> In order to help focus on improving the java6 branch (because we talked
> about releasing a milestone based on it a while back), I'd like to do
> merges more often.  So making the process simpler would be useful.
>
> Regards,
>  Mark.
>
>
>