« Peter Hamilton, Reality Dysfunction Review | Main | Whidbey setup project race condition »

Creating Labels

More thoughts on Perforce labeling.

 

When you create a label, you should do it in the following steps:

1. Create a new label.

2. Restrict the label to a set of folders and files you expect will always be in future versions of the label. Do this by selecting folders (and files) in the depot view, dragging them to the label, and choosing "Add Depot Selections to View for ...." (make sure you delete the original filter).

3. Now you can drag the entire depot to the label and choose "Add/replace files listed in..."

 

The big benefit of doing it this way is when you release the next version of the product. You create the new label using the old one as a template; drag the whole depot to it, and you're done... It helps to avoid those situations where there's a little used dependency between projects that you might otherwise forget to include in the label.

 

 

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)