将主干合并到Subversion中的分支 [英] Merge trunk to branch in Subversion

查看:93
本文介绍了将主干合并到Subversion中的分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Subversion 1.4.6,目前无法升级到1.5版.

I'm using Subversion 1.4.6, and I cannot upgrade to version 1.5 right now.

情况:

  1. 后备箱有很多结构上的变化(即主要是移动文件).

  1. The trunk has a lot of structural changes (i.e. moving files around, mostly).

我有一个最近从主干合并的分支,但在进行重大更改之前.

I have a branch that was recently merged from the trunk, but before the major changes.

将主干合并到分支的最佳方法是什么?

What is the best way to merge the trunk to the branch?

我的想法:

  1. 首先,通过仅将分支中已修改的文件合​​并到主干中,仔细地将分支合并到主干中.

  1. First carefully merge the branch to the trunk, by merging only the modified files in the branch to the trunk.

将中继复制到分支.在不丢失分支历史的情况下执行此操作的最佳方法是什么?我应该弃用分支并创建一个新分支吗?

Copy the trunk to the branch. What is the best way to do this without losing the branch history? Should I deprecate the branch and create a new one?


好的,看来我没有给SVN足够的功劳.毕竟它足够聪明.我只是被"D"和"A"的输出推迟了,但是在后台它做了一个动作.


Okay, it looks like I didn't given SVN enough credit. It's smart enough after all. I was just put off by the output of "D" and "A", but in the background it did a move.

推荐答案

是否有某些东西使您无法合并自上次合并以来主干上的所有修订?

Is there something that prevents you from merging all revisions on trunk since the last merge?

svn merge -rLastRevisionMergedFromTrunkToBranch:HEAD url/of/trunk path/to/branch/wc

应该可以正常工作.至少如果您要将主干上的所有更改合并到分支中.

should work just fine. At least if you want to merge all changes on trunk to your branch.

这篇关于将主干合并到Subversion中的分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆