SVN 合并没有找到我的更改

发布于 2024-10-15 04:15:32 字数 173 浏览 1 评论 0原文

这是我发出的命令:

svn merge -r74:80 http://url.to/svn/branch/branch_name

它会思考一分钟,然后返回一个空白提示,就像两者之间没有区别一样。 我知道分支和主干之间存在差异。

我做错了什么? :(

Here is the command I'm issuing:

svn merge -r74:80 http://url.to/svn/branch/branch_name

It will think for a minute, then return a blank prompt like there's no differences between the two.
I know for a fact that there are differences between the branch and trunk.

What am I doing wrong? :(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对不⑦ 2024-10-22 04:15:32

您的命令要求 svn 将分支内修订版 74 和 80 之间的差异合并到您的工作副本中。 这些修订中是否

svn diff -r74:80 http://url.to/svn/branch/branch_name

显示了该分支的任何更改?


编辑: svn merge 获取存储库时空中的两个点,获取它们的差异并尝试将该差异合并到您的工作副本中。如果您想将更改从主干合并到分支,则需要签出该分支并按菜单

svn merge -r74:80 http://url.to/svn/trunk

svn merge http://url.to/svn/trunk http://url.to/svn/branch/branch_name .

站在该目录中进行合并。然后,解决冲突、test(!) 和svn ci

为什么 svn 会这样工作?让您有机会在将更改提交到存储库之前解决冲突并进行测试。

Your command asks svn to merge the differences between revisions 74 and 80 inside the branch into your working copy. Does

svn diff -r74:80 http://url.to/svn/branch/branch_name

show any changes to that branch in these revisions?


Edit: svn merge gets two points in repository space-time, takes their difference and tries to merge that difference into your working copy. If you want to merge changes from trunk to a branch, you will need to check out that branch and make a merge à la

svn merge -r74:80 http://url.to/svn/trunk

or

svn merge http://url.to/svn/trunk http://url.to/svn/branch/branch_name .

while standing in that directory. Then, resolve conflicts, test(!) and svn ci.

Why does svn work this way? To give you a chance to resolve conflicts and test before you submit changes to the repository.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文