开发者

Svn2git isn't attaching branches to parents

Not sure if this is the best place to ask, but I'm runn开发者_开发知识库ing svn2git to convert an SVN repo to a git repo with branches and tags preserved. For some reason, the branches and tags are not descendents of master when the conversion is completed, which is pretty annoying.

The repository I want to convert is at http://ros.berkeley.edu/svn/berkeley-ros-pkg/stacks/berkeley_demos/. It should be in the standard layout as far as I can tell.

If anyone could help me out I would greatly appreciate it.


This might be a possible solution (unfortunately this didn't come up when I searched for my original problem but when I searched on how to mangle history to change the parent of a commit I found it) git - setting a commit's parent without rebase

Edit: Yay! Grafts are the way to go, since I'm really only doing this temporarily to figure out what the svn branch history looks like (go figure - it's completely linear but it goes from trunk, to a tag (which really became a branch) to a branch). When i do the proper conversion rebase will work too.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜