You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Erik Andersson <ki...@gmail.com> on 2010/02/19 10:26:04 UTC

Merge scripts

Hi

Have anyone already created some scripts for making life easier using svn
1.6 merge tracking and are willing to share?

I want a replacement for svnmerge.py avail -l
Something like:
svnAvail.py -S <source>
Running: svn mergeinfo <source> --show-revs eligible | xargs -I {} svn log
-v <source> -{}

I'd like a script for merging trunk to a branch
rebase.py
1. shows available changsets with log
2. asks if you want to merge the available changesets
3. merges changes from ../../trunk (unless --trunk|-T <trunk> is specified)
(req's a /module/branches|trunk structure setup)
4. asks to commit, unless conflicts are found

And a script to reintegrate branches and recording the reintegrate changeset
as record-only in the branch)
reintegrate.py --branch|-B <branch>
1. shows available changes in the branch
2. asks if you want to merge
3. merges changes from the branch
4. asks to commit, unless conflicts are found
5. record the trunk commit as record-only
  5.1. cd <branch>
  5.2. svn merge -c XXXXX --record-only
  5.3  svn ci -m"#1234 blocking merge of <branch> to trunk"

Something like this..

Ps. I apologize if this already have been resolved and my google skills
failed me. Ds.

Cheers / Erik

Re: Merge scripts

Posted by Erik Andersson <ki...@gmail.com>.
Hi

Following up on this since I didn't recieve any feedback of any kind. I'd
like to give it one more try..

Cheers / Erik

On Fri, Feb 19, 2010 at 12:26 PM, Erik Andersson <ki...@gmail.com> wrote:

> Hi
>
> Have anyone already created some scripts for making life easier using svn
> 1.6 merge tracking and are willing to share?
>
> I want a replacement for svnmerge.py avail -l
> Something like:
> svnAvail.py -S <source>
> Running: svn mergeinfo <source> --show-revs eligible | xargs -I {} svn log
> -v <source> -{}
>
> I'd like a script for merging trunk to a branch
> rebase.py
> 1. shows available changsets with log
> 2. asks if you want to merge the available changesets
> 3. merges changes from ../../trunk (unless --trunk|-T <trunk> is specified)
> (req's a /module/branches|trunk structure setup)
> 4. asks to commit, unless conflicts are found
>
> And a script to reintegrate branches and recording the reintegrate
> changeset as record-only in the branch)
> reintegrate.py --branch|-B <branch>
> 1. shows available changes in the branch
> 2. asks if you want to merge
> 3. merges changes from the branch
> 4. asks to commit, unless conflicts are found
> 5. record the trunk commit as record-only
>   5.1. cd <branch>
>   5.2. svn merge -c XXXXX --record-only
>   5.3  svn ci -m"#1234 blocking merge of <branch> to trunk"
>
> Something like this..
>
> Ps. I apologize if this already have been resolved and my google skills
> failed me. Ds.
>
> Cheers / Erik
>