While I am checkingin a file from my pending set change list. I select Commit Selected Action. it comes up with the checkin screen...
it has the list of files some check boxes on keep check out/remove local copy.
a Comment area.
But I see no place where I can apply a label for this at the time of checkin...
Is there a way I am missing?
How do I apply a label on Checkin?
Moderator: SourceGear
Re: How do I apply a label on Checkin?
There isn't a way to label on checkin. You can label after the checkin.
I can log a feature request for this. It would be helpful to know how labeling on checkin would help your development process.
I can log a feature request for this. It would be helpful to know how labeling on checkin would help your development process.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: How do I apply a label on Checkin?
Hi Labauer,
Before I answer, I think I am might be assuming something incorrectly about your software. Is there a way for me to pull out files/folders onto a hard drive that have a particular label?
Ie I changes
App_code/commonwebservice.cs
Admin/Users.aspx
Admin/Users.aspx.cs
Web.Config
SQLDB/StoreProcedures/SaveUsers.sql
SQLDB/Tables/Users.sql
All these have a label of V2.40.
So I would want to retrieve those into my Release Folder to prepare an install.
Labels for me are used to keep track of revisions and to have an automatic way of pulling out files from the source code control that pertain to a particular release.
Before I answer, I think I am might be assuming something incorrectly about your software. Is there a way for me to pull out files/folders onto a hard drive that have a particular label?
Ie I changes
App_code/commonwebservice.cs
Admin/Users.aspx
Admin/Users.aspx.cs
Web.Config
SQLDB/StoreProcedures/SaveUsers.sql
SQLDB/Tables/Users.sql
All these have a label of V2.40.
So I would want to retrieve those into my Release Folder to prepare an install.
Labels for me are used to keep track of revisions and to have an automatic way of pulling out files from the source code control that pertain to a particular release.
Re: How do I apply a label on Checkin?
One way to do this is to right-click on the file, select Show Labels, highlight the label you want, right-click and select Get.
If you have many items with the same label, it would be easier to get them using the Command Line Client and the GetLabel command:
http://download.sourcegear.com/misc/vau ... m#GETLABEL
A sample command would be:
D:\Program Files\SourceGear\VaultPro Client>vault getlabel -user linda -password "" -host myvault -repository "Initial Repository" $/testfolder version2 -nonworkingfolder "D:\_Labelfolder"
<vault>
<result>
<success>True</success>
</result>
If you have many items with the same label, it would be easier to get them using the Command Line Client and the GetLabel command:
http://download.sourcegear.com/misc/vau ... m#GETLABEL
A sample command would be:
D:\Program Files\SourceGear\VaultPro Client>vault getlabel -user linda -password "" -host myvault -repository "Initial Repository" $/testfolder version2 -nonworkingfolder "D:\_Labelfolder"
<vault>
<result>
<success>True</success>
</result>
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: How do I apply a label on Checkin?
Hi Linda,
So the scenario for instance is right now. I fixed a general bug that affected about 6 files. So, if I got the client gui for Vault and goto Pending Change Set. I highlight all the ones I want to do a final check in. These are the finalized version for QA testing. So release wise we would pull down files to install for qa by a label.
So I need to label these files for them to be grabbed for a build.
Anyway, I am doing final check in and I need to check in plus label these files. The only way for me to do this is Goto Pending Change List Commit action. Give my description and checkin. Then go and find each file in the folder list in source vault and apply the label. Currently 6 files span in 3 different folder structures I have to drill down.
It be much easier to apply a label on checkin.
Further more if QA comes back with a bug related to my changes in one of my files. It be nice to check that file in and reapply the same label to the new revision of the file.
Currently, I have to delete the label and reapply it for each file that needed extra coding.
In regards to pulling a label. So the gui is currently limited to going to a specific file and getting label. I can't right click on repository and say get label. And have it find all the labels pertaining to the repository and tell it what ones to extract and have it extract all the labels.
So are you saying the command line part has the ability to recurse down the folder structure and grab all necessary files that have that label?
Ie I changes
$
App_code/commonwebservice.cs
Admin/Users.aspx
Admin/Users.aspx.cs
Web.Config
SQLDB/StoreProcedures/SaveUsers.sql
SQLDB/Tables/Users.sql
All these have a label of V2.40.
So it would grab all these files, @ *one time* and replicate the folder structure on the hard drive and place a copy of them in the appropriate spot?
Could I specify the top $ folder as a place to start and it transverse through and find relevant files?
So the scenario for instance is right now. I fixed a general bug that affected about 6 files. So, if I got the client gui for Vault and goto Pending Change Set. I highlight all the ones I want to do a final check in. These are the finalized version for QA testing. So release wise we would pull down files to install for qa by a label.
So I need to label these files for them to be grabbed for a build.
Anyway, I am doing final check in and I need to check in plus label these files. The only way for me to do this is Goto Pending Change List Commit action. Give my description and checkin. Then go and find each file in the folder list in source vault and apply the label. Currently 6 files span in 3 different folder structures I have to drill down.
It be much easier to apply a label on checkin.
Further more if QA comes back with a bug related to my changes in one of my files. It be nice to check that file in and reapply the same label to the new revision of the file.
Currently, I have to delete the label and reapply it for each file that needed extra coding.
In regards to pulling a label. So the gui is currently limited to going to a specific file and getting label. I can't right click on repository and say get label. And have it find all the labels pertaining to the repository and tell it what ones to extract and have it extract all the labels.
So are you saying the command line part has the ability to recurse down the folder structure and grab all necessary files that have that label?
Ie I changes
$
App_code/commonwebservice.cs
Admin/Users.aspx
Admin/Users.aspx.cs
Web.Config
SQLDB/StoreProcedures/SaveUsers.sql
SQLDB/Tables/Users.sql
All these have a label of V2.40.
So it would grab all these files, @ *one time* and replicate the folder structure on the hard drive and place a copy of them in the appropriate spot?
Could I specify the top $ folder as a place to start and it transverse through and find relevant files?
Re: How do I apply a label on Checkin?
Thanks for the description of how you would like label on checkin to work. I've logged feature request 16773 for this functionality.
Some other options to think about that might help your development process:
1. After you check your changes, label your repository at root, so the label would have your changes, and also the other files in your project or website. That way, QA would could get the label and have everything they needed for testing or building. You can apply a new label when you checkin changes, or you can promote the label.
2. Use branches. You could branch your project and work in the branch, labeling if you wish. Then when QA has tested the branch, you can merge the branch back into the trunk, and continue your updates in the branch.
Your command would be something like:
C:\Program Files\SourceGear\Vault Client>vault getlabel -user alaw -password "" -host vaultserver -repository "Repository" $ version2 -nonworkingfolder "C:\_Labelfolder"
Some other options to think about that might help your development process:
1. After you check your changes, label your repository at root, so the label would have your changes, and also the other files in your project or website. That way, QA would could get the label and have everything they needed for testing or building. You can apply a new label when you checkin changes, or you can promote the label.
2. Use branches. You could branch your project and work in the branch, labeling if you wish. Then when QA has tested the branch, you can merge the branch back into the trunk, and continue your updates in the branch.
Yes. It would reproduce the folder structure and the folders would have only the labeled files.So are you saying the command line part has the ability to recurse down the folder structure and grab all necessary files that have that label . . . So it would grab all these files, @ *one time* and replicate the folder structure on the hard drive and place a copy of them in the appropriate spot?
Could I specify the top $ folder as a place to start and it transverse through and find relevant files?
Your command would be something like:
C:\Program Files\SourceGear\Vault Client>vault getlabel -user alaw -password "" -host vaultserver -repository "Repository" $ version2 -nonworkingfolder "C:\_Labelfolder"
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager