{"id":1696,"date":"2017-12-05T12:47:18","date_gmt":"2017-12-05T12:47:18","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1696"},"modified":"2020-01-09T09:40:08","modified_gmt":"2020-01-09T09:40:08","slug":"add-and-removes-files-from-label","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/add-and-removes-files-from-label\/","title":{"rendered":"Add and removes files from label"},"content":{"rendered":"<p><strong>scmuser created the topic: Add and removes files from label<\/strong><br \/>\nHi,<\/p>\n<p>Could you please tell me how to add and remove files from already created labels?<\/p>\n<p><strong>mnanjala replied the topic: Re: Add and removes files from label<\/strong><br \/>\nP4Web Release 2010.1 User Guide<br \/>\n[Getting Started] [How To&#8230;] [Browser Tips] [Glossary] [Road Map]<br \/>\nAdding and Replacing Files in a Label<\/p>\n<p>There are essentially two steps to creating a label:<\/p>\n<p>Create the label spec, which defines the name of the label and label view.<br \/>\nTag the files with that label using Add\/Replace files&#8230;<br \/>\nAdd\/Replace files&#8230; tags a set of files with a label. Once you have tagged them, you can refer to a set of files by their label name.<br \/>\nFor more information about labels, see Working with Labels.<\/p>\n<p>Add\/Replace restrictions<\/p>\n<p>Bear in mind that you cannot use Add\/Replace files to update a label if:<br \/>\nThe label&#8217;s Owner: field is not your userid. You can only update labels you own.<br \/>\nThe label has its Options: field set to locked<br \/>\nFor more information about a label&#8217;s fields, see Creating and Editing Labels.<br \/>\nTo Add\/Replace files in a label<\/p>\n<p>Select the Labels tab.<br \/>\nClick on the name of the label to which you want to add or replace files.<br \/>\nSelect Add\/Replace labels&#8230; from the pulldown list.<br \/>\nOn the Add\/Replace Files page<br \/>\nUnder Revision: select one of the following radio buttons:<br \/>\nWorkspace Revision: tags the file revisions currently synced in your workspace with the label.<br \/>\nHead Revision: tags the file revisions that are currently the latest versions in the depot with the label.<br \/>\nLabel, Changelist or Date: enter a label name, a changelist number, or a date to tag files at revisions matching that criteria.<br \/>\nUnder Options: select one of the following radio buttons:<br \/>\nReplace label contents completely: specified files are added or replaced. Files previously in the label that do not match your specification are removed from the label.<br \/>\nAdd files to label: adds or replaces only the files that you specify. Labeled files that do not match your specifications are unaffected.<br \/>\nRemove files from label: removes the named files from the label.<br \/>\nUnder Files: you can specify or restrict the files to add or replace. Select one of the following options:<br \/>\nAll files in label view: includes all files in this label&#8217;s label view.<br \/>\nFiles in [path]: this option is only available when your current path is not the root of the depot tree. Select and subdirectories or at this level only, depending on which files you want to include.<br \/>\nFiles in this list: includes only the files listed in the textbox. You must provide a full pathname for these files, and you can use wildcards. Note that the files you specify must be in the label&#8217;s view, or P4Web displays a &#8220;No such file&#8221; error. You can also specify revisions if you have selected the Workspace Revision option.<br \/>\nWhen you have finished defining the parameters, click the Preview Add\/Replace button to see the results before actually updating the label. If the command has the expected results, click your browser&#8217;s &#8220;Back&#8221; button and click the Add\/Replace button to proceed.<br \/>\nSource : <a href=\"http:\/\/www.perforce.com\" target=\"_blank\" rel=\"noopener\">www.perforce.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>scmuser created the topic: Add and removes files from label Hi, Could you please tell me how to add and remove files from already created labels? mnanjala replied the topic: Re: Add and removes files from label P4Web Release 2010.1 User Guide [Getting Started] [How To&#8230;] [Browser Tips] [Glossary] [Road Map] Adding and Replacing Files&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[370],"tags":[391],"class_list":["post-1696","post","type-post","status-publish","format-standard","hentry","category-perforce","tag-removes"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1696"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1696\/revisions"}],"predecessor-version":[{"id":1697,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1696\/revisions\/1697"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}