我们如何在 Perforce 中识别父分支?
假设我有一个主要分支 - //project/main/...
然后我从 main 创建了新分支 - //project/1.0/...
然后我再次从 1.0 创建分支 - //project/2.0/...
现在,如果有人想知道2.0分支是从哪个分支创建的,用户如何识别?
Suppose i had a main branch -
//project/main/...
and than i created new branch from main -
//project/1.0/...
and then again i created branch from 1.0 -
//project/2.0/...
Now, if someone wants to know from which branch branch 2.0 created, how can user identify?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
选择一个文件并使用 Perforce 修订图查看特定文件的分支之间的关系。
Perforce 没有将 Branch 作为一级对象,因此您必须查看各个文件的分支历史记录。
您还可以转储所有分支定义,并尝试使用 Perl 脚本和 GraphViz 等绘图工具链接不同分支规范的头部和尾部。
Select a file and use the Perforce Revision Graph to see the relationships between branches for a particular file.
Perforce does not have Branch as a first-class object, so you have to look at the branch history of individual files.
You could also dump all the branch definitions and try to link the heads and tails of the different branch specifications with a perl script and a graphing tool like GraphViz.
从命令行执行 p4 filelog -i //somefile 将显示分支历史记录。这是相当于 xt1 给出的答案的命令行。
From the command line, doing p4 filelog -i //somefile will show the branch history. It's the command line equivalent of the answer xt1 gave.