Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Tagging, or creating a human readable label for a current state of a repository in Perforce is called Labeling, and it's really easy. We'll just go to our folder p1, right-click, go down to the Label menu, and up comes the Label dialog. In this case we'll put in our Label, we'll say it's v1, and we'll automatically apply the label to the file revisions of the things inside Work\p1 at the latest revision and click Label. And it says This label doesn't exist. Create it? Yep, that's what we want.
Now labels are suitable for rollbacks, and we can see that by starting the rollback process here for this file, and if we dropdown Rollback file to: we can pick label, and when we browse. There is our v1 label. So this is the way in which you switch between different versions when you want to roll back and make a change and then roll forward toward to where you were to continue on working. And that's it for labeling in Perforce. It's really that easy. So we're not going to actually roll back anything because we're already at the most recent version.
So let's move on to Branching and Merging in perforce.
Get unlimited access to all courses for just $25/month.Become a member