trunk的SVN分支子目录
当我在 SVN 中创建子文件夹的分支,然后尝试将主干更改合并到该分支时,SVN 尝试将修订版本从 1 合并到 HEAD,这会导致大量的树冲突。
我正在使用TortoiseSVN,我们有一个结构如下的SVN存储库:
-> root
->Docs
->Code
->trunk
->project
->module1
->module2
->branches
->v1
->v2
我想要的只是在branches\module1_test中创建一个module1的分支,并时不时地将更改从trunk\project\module1合并到bracnhes\module1_test,然后重新集成主干中的测试分支。
但由于某种原因,当我在 turtoiseSVN 中合并一系列修订时,它会尝试从主干合并 1-HEAD,并产生大量树冲突,为什么它不使用分支创建时的修订。
When I create a branch of subfolder in SVN and then try to merge trunk changes to this branch SVN tries to merge revisions from 1 to HEAD and this results in huge list of tree conflicts.
I'm using TortoiseSVN and we have a SVN repository with a structure like this:
-> root
->Docs
->Code
->trunk
->project
->module1
->module2
->branches
->v1
->v2
What I want is just create a branch of module1 in branches\module1_test and from time to time merge changes from trunk\project\module1 to bracnhes\module1_test and then reintegrate test branch in trunk.
But for some reason when I do Merge->Merge a range of revisions in turtoiseSVN it tries to merge 1-HEAD from trunk and it produces lots of tree conficts, why it's not using the revision of when the branch was made.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您将 module1 合并到 module1_test 时,不是不指定任何 rev,它将采用所有 module1 修订版,即 1-head
因此,您需要指定修订版,该修订版将成为 head 的 rev(创建分支时)。
When you are merging module1 to module1_test, not not specifying any rev it will take all module1 revisions i.e., 1-head
So, you need to specify the revision which would be the rev (when the branch was created) to head.