[p4] finding a branch point
Noel.Yap at morganstanley.com
Sun Jan 11 06:12:09 PST 2004
I was just thinking, my goal is to create a new branch from the branch point of an existing branch. Would the following work?
1. Create a new branch spec that gets its stuff from the older branch (eg an older release branch).
2. Integrate using this branch spec using #1 (ie the first submit onto the older branch).
3. Submit the integration.
4. Modify the branch spec such that it gets its stuff from the main development branch.
Chuck Karish wrote:
> 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.
More information about the perforce-user