Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we identify parent branch in Perforce?

Tags:

perforce

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?

like image 587
Rohit Jain Avatar asked Apr 27 '11 11:04

Rohit Jain


People also ask

Are there branches in Perforce?

What Is Perforce Branching? Perforce Streams. All version control systems have branching.

What is branch mapping in perforce?

The branch mapping is used by the integration process to create and update branches., which specifies the relationship between two codelines. When you branch, you can use the branch mapping instead of a file mapping. Branch mappings are displayed in the right pane on the Branch Mapping tab.

How does p4 integrate work?

In its simplest form, p4 integrate -b branchname -s fromFile allows you to integrate files using the source/target mappings included in the branch view of branchname , but include only those source files that match the patterns specified by fromFile .


1 Answers

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.

like image 176
xt1 Avatar answered Oct 26 '22 09:10

xt1