How does one move a Label from one version to another?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
surak8
Posts: 16
Joined: Mon Nov 30, 2009 2:04 pm

How does one move a Label from one version to another?

Post by surak8 » Thu Mar 04, 2010 8:52 am

Using the client app (VaultGUIClient), I am unable to reassign a label to a different version.

Is there any way to MOVE the label, short of deleting the label from the previous version, and adding it again to the new version? Is there no shortcut for doing this?

Please tell me there is an easy way?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: How does one move a Label from one version to another?

Post by lbauer » Thu Mar 04, 2010 11:22 am

Is the label on a folder or a file?
Linda Bauer
SourceGear
Technical Support Manager

surak8
Posts: 16
Joined: Mon Nov 30, 2009 2:04 pm

Re: How does one move a Label from one version to another?

Post by surak8 » Fri Mar 05, 2010 8:41 am

Linda,
at this point, file or folder makes no difference.

If possible, I would be interested in an answer for both. If that is not possible, I would choose FILE, please?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: How does one move a Label from one version to another?

Post by lbauer » Mon Mar 08, 2010 2:44 pm

There's no way to move a file label to a different version. You would need to delete the label and re-apply it to the new version. You could automate this with the Command Line Client using the DeleteLabel and Label commands.

http://download.sourcegear.com/misc/vau ... nt/clc.htm

Another idea would be to use a label name you can increment, like Label1, Label2, Label3, etc.

You also can't move a folder label, although you can Promote the label on a folder. To promote a label, right-click on the folder and select Show Labels. Right-click on the label from in the list and select Promotion. You can add or delete an item or change the version of a file from the list of label contents.
Linda Bauer
SourceGear
Technical Support Manager

surak8
Posts: 16
Joined: Mon Nov 30, 2009 2:04 pm

Re: How does one move a Label from one version to another?

Post by surak8 » Tue Mar 09, 2010 8:41 am

Linda,
The promotion idea may have merit.

OK, so I have the FOLDER labeled, and can choose the FILES to be associated with the label.
Q: is the label associated with a specific Vault version, or simply with the file? (association keyed on ID, instead of ObjId?)

Thanks to your suggestion, I see that ServerOperations.ProcessCommandRenameLabel may provide some insight.

All of these questions stem from the inability to assign Labels with either the "Classic client" or "Enhanced client" from withing Visual Studio.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: How does one move a Label from one version to another?

Post by lbauer » Wed Mar 10, 2010 11:14 am

The label is associated with a specific folder version.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply