index > Team Foundation Server - Version Control > Extend version control at time of check in

Extend version control at time of check in


We have a huge repository of xml documents that we have checked into our Team Foundation Server. At this time, we'd like to have a process that runs on the files, at the time of check-in, which evaluates the files are stores index information about them in a separate database.

I've already coded the functions, in c#, to look at the files; however, I'm trying to find some type of documentation which shows me how to extend the check-in process to either kick off a command line utility or make a method call into an assembly whenever a file is checked in to source control.

Any ideas?

Thanks,



MRG Document Technologies
Chris Lively

Hello,

Basically, there are two choices. Either you can hook up onto check in event at TFS server (the event occurs after actual check in; see MSDN or the following post) or you can create add-in to hook up onto CommitCheckin event of VersionControlServer object (the event will fire on each client performing check-in).

Probably the former approach would be easier (as it will have single point of entry, simpler configuration etc.).

Regards, Eugene




Blog at http://teamfoundation.blogspot.com
eugene.z

Had another look at your question, and I think may have overlooked something. If you care about actual contents of the files being checked in, then the client side Visual Studio add-in may be the option for you, as then you will have an easy access to actual files that were checked in. CommitCheckinEventArgs passed to CommitCheckin event will have all information required.

The VersionControlServer events are not documented extensively in MSDN, but there are lots of basic VersionControlServer examples (see the following Buck Hodges post, for example), and once you have VersionControlServer instance usual event handling techniques apply.

Regards, Eugene




Blog at http://teamfoundation.blogspot.com
eugene.z
reply 3

You can use google to search for other answers

 

More Articles

Create Folder structure within a project.
Error when merging in TS
Zero-byte Files After Performing "Get Latest Version"
TFS "Branch on Checkout"
Readd of a project which was bind to source control fails
VS SP1
2 TFS Project - 1 Source Control Root
Microsoft Expression Interactive Designer as a Team Foundation cl...
Permanently de-branch files/folders???
Check In: Operation not performed
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

SCM plan for dependent projects in TFS
Request.ServerVariables("HTTP_AUTHO…
I've deleted my local files, and I'm una…
Undo Check Out of another user
Coexistence of VSS and TFS
Msscci and sprax enterprise architect
Merging work-items
VssConverter problem
Changes since a label was applied
Unit Testing a Checkin Policy
Migrating TFS workspace from TFS Server …
Unable to add code to Source Control (to…
How team system supports baseline contro…
failed to save the project from vs2003
VC programming help needed

Hot Articles

MSSCCI Provider and SQL Management Studio
Check OUt - Get Latest Version
VSS Converter throwing error.
Re-sizing and Sorting Columns in Work It…
More than just VSS 2005?
Change/Set the Working Folder/Local Name
MSSCCI 2003 Install Question
Problem with Rename - Delete/Undelete
Problem with MSSCCI using VB6
How do I start a new team project based …
Determine if there is a label already ap…
Recover files directly from TfsVersionCo…
How to handle large numbers of projects …
Retrieving the workitem delta between tw…
Unable to see newly added items in Sourc…

Recommend Articles

Why does TFS's Version Control employ fo…
tf merges command - slow - timing out - …
problems with shared checkout - merge to…
Team System add-on for SQL 2005 Manageme…
How to backup and restore Source Control…
Merged Changesets List
How one can sense that there a Check in …
Msscci provider 1.1 is out!
Problem with check in after merge
check out all items programatically C#
Check In by Changeset After Merge
Custom Checkin Policy Installation
Adding an exisiting project to source co…
ThreeWayMerge.Run() crashes when IsBasel…
Re: Check-out not getting latest (RTM)