Perforce Command Reference:   [Index]  [Prev] [Next]


p4 branch

Synopsis

Create or edit a branch specification and its view

Syntax

p4 branch [ -f ] name
p4 branch -o name
p4 branch -d [ -f ] name
p4 branch -i [ -f ]

Description

Create a new branch specification or edit an existing branch specification. The specification form is put into a temporary file and the editor (given by the environment variable $EDITOR) is invoked.

The branch specification form contains the following fields:

Branch: The branch name (read only.)

Date: The date specification was last modified (read only.)

Description: A short description of the branch (optional).

View: A mapping from the source files of the branch to the target files of the branch. Both the left and right hand sides of the mappings refer to the depot namespace.

New branches are created with a default view that maps all depot files back into themselves. This view must be changed before thebranch view is usable.

A branch definition is used only by the 'p4 integrate' command.

The -d flag deletes the named branch.

The -o flag causes the named branch specification to be written to the standard output. The user's editor is not invoked.

The -i flag causes a branch specification to be read from the standard input. The user's editor is not invoked.

The -f flag allows the superuser to delete any branch; normally branches can only be deleted by their owner. -f also allows the last modified date to be set.



Perforce Command Reference:   [Index]  [Prev] [Next]


Copyright 1998 Perforce Software.
Contact us at [email protected]
Last updated: 06/14/98