How to define a parent branch in Perforce?

Suppose I had a main branch - // Project / main / ...

and how did I create a new branch from main - // project / 1.0 / ...

and then again I created a branch with 1.0 - // project / 2.0 / ...

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

+6
source share
2 answers

Select a file and use the Perforce Revision Graph to see the relationship between branches for a specific file.

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

You can also reset all branch definitions and try linking the heads and tails of different branch specifications using a perl script and a graphical tool such as GraphViz.

+10
source

From the command line, doing p4 filelog -i // somefile will display the branch history. This corresponds to the command line equivalent to answer xt1.

+3
source

Source: https://habr.com/ru/post/886790/


All Articles