我们如何在 Perforce 中识别父分支? [英] How can we identify parent branch in Perforce?

查看:48
本文介绍了我们如何在 Perforce 中识别父分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个主分支 -//项目/主/...

Suppose i had a main branch - //project/main/...

然后我从主创建了新分支 -//project/1.0/...

and than i created new branch from main - //project/1.0/...

然后我再次从 1.0 创建了分支 -//project/2.0/...

and then again i created branch from 1.0 - //project/2.0/...

现在,如果有人想知道分支 2.0 是从哪个分支创建的,用户如何识别?

Now, if someone wants to know from which branch branch 2.0 created, how can user identify?

推荐答案

选择一个文件并使用 Perforce Revision Graph 查看特定文件的分支之间的关系.

Select a file and use the Perforce Revision Graph to see the relationships between branches for a particular file.

Perforce 没有将 Branch 作为一流对象,因此您必须查看单个文件的分支历史记录.

Perforce does not have Branch as a first-class object, so you have to look at the branch history of individual files.

您还可以转储所有分支定义,并尝试使用 perl 脚本和 GraphViz 等图形工具链接不同分支规范的头尾.

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.

这篇关于我们如何在 Perforce 中识别父分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆