How can we identify parent branch in Perforce?

耗尽温柔 提交于 2019-12-23 09:07:22

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/5803613/how-can-we-identify-parent-branch-in-perforce

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!