[p4] finding a branch point
Chuck Karish
karish at well.com
Sat Jan 10 00:36:47 PST 2004
Noel Yap wrote:
>How can I figure out at what change number an integration for a specific branch occured.
>
>For example, if the following command were done:
>
> p4 integrate //depot/foo/bar/dev/... at 32768 //depot/foo/bar/1.0/...
>
>then given only the branch //depot/foo/bar/1.0/...
>
>How can I figure out that it was originally populated up to the change set @32768.
>
This is not going to be pretty ...
Find the versions of the source files for the integration by doing 'p4
filelog -m1 <file>#<integration_submit_change>'
for each file in the changelist for the submit of the integration.
From the output of these commands extract the lines that contain the
word 'from'. These give you the revisions
of the files from which the integrations were done.
Run 'p4 filelog -i' on each of the filespecs extracted from the 'from'
lines, and extract lines containing 'change'
from the output. This gives you the change numbers for the deltas that
were integrated to the new branch.
These change numbers should all be less than or equal to the change
number in the integrate command.
Chuck
More information about the perforce-user
mailing list