简体   繁体   English

我怎么知道分支RC-1中的修订版247389是否合并到主干中

[英]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.

相关问题 如何确定分支是否已合并到主干中? - How do I find out if a Branch was merged into the Trunk? 您如何在“ svn复制主干分支”之前找到分支的修订版本,以便我可以还原副本 - How do you find the revision of a branch prior to a ‘svn copy trunk branch’ so I can revert the copy 如何将分支扩展到从Crucible开始的主干版本? - How can I diff a branch to the trunk revision it started from in Crucible? 如何重新集成分支,覆盖尚未合并到分支的主干更改? - How to reintegrate branch, overwriting trunk changes that has not been merged into branch? 我们如何确保将维护分支上的错误修复合并回主干? - How do we ensure that bug fixes on maintenance branch are merged back to trunk? 如何在SubVersion中重新合并从主干版本重新创建的分支? - How can I re-merge a branch re-created from a trunk revision in SubVersion? 如何确定用于使用SharpSvn创建分支的主干版本? - How can I determine the trunk-revision used to create a branch with SharpSvn? 我怎么知道分支是否已经在SVN / Mercurial / Git中合并? - How do I know if a branch has already been merged in SVN/Mercurial/Git? 如何阻止分支中的Subversion修订版重新集成到主干中? - How can a subversion revision in a branch be blocked from being reintegrated into the trunk? svn:如何从某个版本的trunk创建一个分支 - svn : how to create a branch from certain revision of trunk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM