Get modified files since specific label

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

Moderator: SourceGear

Post Reply
jcmag

Get modified files since specific label

Post by jcmag » Sat Sep 10, 2005 10:19 am

Hello,

I would like to be able to retrieve automagically all modified files since I have applied a label. Let's say I have released version 1.0 to my customers. I applied a 1.0 label. Then I modify some files (because my customers have found bugs...) and I want to deliver only these files (and not my 5000000... other files). So I would like to do a "Get modified files since label 1.0".
Is it possible with Vault GUI ? If not, could I use Vault API ? (in this case could you tell me which classes could do the job ?)

Thanks in advance

JC

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Sep 12, 2005 1:59 pm

You will need to use the Vault API to accomplish this. First, look at http://support.sourcegear.com/viewtopic.php?t=450 to see how to do an API query. You can look at the CLC code (Included in VaultClientAPI.msi) to see how the CLC history command uses a label to set the beginning date for the history query.

Then, look at http://support.sourcegear.com/viewtopic.php?t=4172 for a snippet of code to get a historical version of a Vault file.

Let me know if you need more help.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Tue Sep 13, 2005 8:58 am

You could also try the Vault CLC's GETLABELDIFF command.

Guest

Post by Guest » Tue Sep 13, 2005 10:04 am

Thank you very much !
I will take a look and I recontact you if I need help

Post Reply