[英]how do i know if a revision 247389 in branch RC-1 was merged into trunk
I have a revision 247389, which was committed to RC-1 branch, but i am testing trunk, so how do i know if this particular revision WAS indeed merged to trunk, and how can i see the changes 我有一个修订版247389,已提交给RC-1分支,但是我正在测试中继,所以我如何知道这个特定的修订是否确实已合并到中继中,以及如何查看更改
i tried: 我试过了:
svn mergeinfo eligible --show-revs https://svn.a.b.c/repo/trunk https://svn.a.b.c/repo/branches/RC-1
but i get an error: 但我得到一个错误:
svn: 'https://svn.a.b.c/repo/branches/RC-1' is not a valid --show-revs value
i also dont want to do : 我也不想做:
svn diff --old http://.../repo/branches/0.4.x --new http://.../repo/trunk/
as this gives me error: 因为这给我错误:
not relative to base URLs
You could just look at the mergeinfo on trunk, and that would tell you all the paths and revisions that it has received. 您可以只查看主干上的mergeinfo,它将告诉您它已收到的所有路径和修订。
svn pg svn:mergeinfo http://.../repo/trunk/
To see if the changes are present in trunk, diff trunk at the revision where you committed the merge of the branch with the branch at revision 247389, and they should be identical. 要查看主干中是否存在更改,请在您提交了分支与修订版本247389的分支的合并版本上的diff干线中,它们应该相同。
So if you created revision 250000 when you merged that branch to trunk you would do something like this: 因此,如果将分支合并到主干时创建了修订250000,则将执行以下操作:
svn diff http://.../repo/trunk/@250000 http://.../repo/branches/0.4.x@247389 --summarize
You would likely want to be more specific on the URLs and drill down to the location of the changes that you are interested in. 您可能希望更具体地描述URL,然后深入到您感兴趣的更改的位置。
It seems you got the syntax for the mergeinfo command wrong. 看来您对mergeinfo命令的语法有误。
To get a list of commits to the branch, eligible for merge to trunk you should use the following command 要获取到分支的提交列表(有资格合并到主干),应使用以下命令
svn mergeinfo --show-revs eligible https://svn.a.b.c/repo/branches/RC-1 https://svn.a.b.c/repo/trunk
If you are unable to find r247389 in this list, it means that it has been merged to trunk. 如果在此列表中找不到r247389,则表示它已合并到中继。
To see what changes r247389 consist of, I would just look in the branch with the diff command. 要查看r247389包含哪些更改,我只需使用diff命令查看分支。
svn diff -c 247389 https://svn.a.b.c/repo/branches/RC-1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.