How do I React to Label Changes in a Server Plugin?

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
slmcmahon
Posts: 29
Joined: Sat Mar 29, 2008 6:13 pm
Location: Honolulu, HI
Contact:

How do I React to Label Changes in a Server Plugin?

Post by slmcmahon » Sat Apr 12, 2008 12:03 pm

I've been asked to write a Fortress server plugin that will detect when certain labels have been applied and exract those files from the server and write them out to a server. An example would be that when we applied a label like "ReleasedOnProd" then it would extract the files that were just labeled this way and write them out to the prod server.

I'm overridding the "OnEndTx" method as described in the template project and when a new version of a file is checked in it will detect it and I can step through it, but it doesn't fire when only a label has changed. Does anybody know if there is a way to do this?

Stephen

shannon

Post by shannon » Mon Apr 14, 2008 9:36 am

There is no event fired when a label is added, unfortunately.

This doesn't help your immediate problem, but we have a new deploy wizard power toy that you might find useful here:
http://www.sourcegear.com/fortress/fort ... rtoys.html

Post Reply