码迷,mamicode.com
首页 > 其他好文 > 详细

p4 label管理

时间:2014-10-09 01:07:37      阅读:403      评论:0      收藏:0      [点我收藏+]

标签:des   io   os   使用   ar   for   sp   art   c   

Managing labels
Labels can be used to mark important file revisions, for example, the set of file revisions used to build a particular software release. You can use labels to specify groups of related file revisions in operations like getting file revisions (syncing) and integration.
To use labels, you (1) define the label, then (2) label file revisions in the depot. When you define a label, you specify a label view, which limits the files to which the label can be applied.

To create a label:

Choose File>New>Label.... The Label form is displayed.
Enter a name for the new label.
Enter a description of the label.
Specify the label view one of two ways:
Graphically: on the View tab, select depot paths, or 
Textually: on the Form tab, specify the depot location of the files in the View field. 
Click Save.
To label files:

Select a file and choose Actions>Label... The Label Files dialog is displayed.
Browse for the label you want to use from the Label field.
Choose the label and click OK.
Click the Apply selected label to files radio button.
To specify which revision of the files to label, use the At pulldown menu to choose Revision, Changelist, Date/Time, or Workspace. Enter the corresponding information in the field next to the selection. To use the latest revision of the files, select Revision and click the Latest Revision radio button.
Click Label.
The selected file must be in the label view and synced to your client workspace.

To remove a label from a set of files:

Select a file and choose Actions>Label... The Label Files dialog is displayed.
Browse for the label you want to use from the Label field.
Choose the Remove selected label from files option.
Click Label.
To display the labels defined for the server to which you are connected, choose View>Labels.
To edit a label:

Context-click the label and choose Edit Label labelname. The Label form is displayed.
Enter your changes, and click Save.
Editing a label does not change the list of files to which the label is applied.

To delete a label, click the label and choose Edit>Delete Label labelname. Deleting a label also removes the label from files.

To retrieve file revisions in a label:

Display the Labels pane
Context-click the desired label and choose Get Revision... The Get Revision dialog is displayed.
Click Add... The Add Files/Folders dialog is displayed.
To retrieve all file revisions in a label, click the top-level folder (//). To retrieve a subset of the file revisions in the label, browse to the desired folders and files and select them.
Click OK. The selected folders are displayed in the list of files to be retrieved.
To ensure that your workspace contains only the labeled file revisions, check Remove files from workspace if they are not in label.
Click Get Revision. The labeled file revisions are retrieved.

 

在label面板右键,新建一个label,输入name,description,选择view(创建一个label)

使用label:选择项目,右键,选择label...。通过browse选择刚刚创建的label,action选择第一个button,选择对应的files/Folders,选择at latest revision,点击label。创建成功。

如何获取label的代码:在label面板,选择相应的label,右键,get revision,再选择相应的选项即可

p4 label管理

标签:des   io   os   使用   ar   for   sp   art   c   

原文地址:http://www.cnblogs.com/ppsunlight/p/4011430.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!