开发者

How can we identify parent branch in Perforce?

开发者 https://www.devze.com 2023-03-01 04:36 出处:网络
Suppose i had a main branch - //project/main/... and than i created new branch from main - //project/1.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 w开发者_StackOverflow中文版hich branch branch 2.0 created, how can user identify?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号