开发者

SVN tool to rebase a branch in git style

Are there any tools available that will let me rebase in git style an SVN branch onto a new parent?

So, in the following situation, I create a feature branch, and there are commits to the trunk

              E---F---G  Feature
             /
A---B---C---D--H--I trunk

I'm looking for a tool which copies the trunk, and applies the commits one by one, letting me resolve any conflicts if any exist - but each commit retains the same commit message, and is still a separate commit.

                    E'---F'---G'  Feature
                   /
A---B---C---D--H--I trunk

So commit E' will be a commit with the same changes as E, except in the case 开发者_开发技巧of E causing a conflict, in which case E' will differ from E in that E' has the conflicts resolved, and the same commit message as E.

I'm looking for this as it helps in keeping branches up to date with trunk - the svnmerge.py / mergeinfo way does not help, as you still need to resolve your changes when you merge back to trunk.


There is a rebase command in the sv utility for svn. I have never used it, because it creates a new branch.


In order to keep a branch up to date with the changes in the trunk, you just merge the trunk into the branch using svn merge.


I'm a long time, heavy SVN user but the ability to rebase branches in git, to me at least, seems to be it's most important feature. Unfortunately all the glossy git marketing brochures seem to focus on the distributed repository 'feature' as the big one - which isn't that important for our scenario.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜