[This is preliminary documentation and is subject to change.]
Get a list of labels from the repository
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2012.2.63.1250 (2012.2.63.1250)
Syntax
C# |
---|
public IList<Label> GetLabels( Options options, params FileSpec[] files ) |
Visual Basic |
---|
Public Function GetLabels ( _ options As Options, _ ParamArray files As FileSpec() _ ) As IList(Of Label) |
Visual C++ |
---|
public: IList<Label^>^ GetLabels( Options^ options, ... array<FileSpec^>^ files ) |
Return Value
A list containing the matching labels
Remarks
p4 help labels
labels -- Display list of defined labels
p4 labels [-t] [-u user] [[-e|-E] nameFilter -m max] [file[revrange]]
Lists labels defined in the server.
If files are specified, 'p4 labels' lists the labels that contain
those files. If you include a file specification, automatic lablels
are omitted from the list. If the file specification includes a
revision range, 'p4 labels' lists labels that contain the specified
revisions. See 'p4 help revisions for details about specifying
revisions.
The -t flag displays the time as well as the date.
The -u user flag lists labels owned by the specified user.
The -e nameFilter flag lists labels with names that match the
the nameFilter pattern, for example: -e 'svr-dev-rel*'. -E makes
the matching case-insensitive.
The -m max flag limits output to the first 'max' number of labels.