Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any pre-commit hook in Team Foundation Server 2010?

I'd like to provide a sort of UI on a commit operation in Visual Studio for my team. How would I go about that, would I create a Studio add-in or is there a TFS event that would help in this case?

like image 718
Mike Caron Avatar asked Mar 18 '11 15:03

Mike Caron


1 Answers

Great question! Unfortunately there isn't an extensibility point on the client side (Visual Studio) to be able to intercept a check-in. However, there is a server-side extensiblity point (called an ISubscriber Decision Point) that you can intercept and allow/reject the check-in. Do you think that would be helpful for you?

That extensibility point is not really documented very well but we have some information in Chapter 25 of our new TFS 2010 book (Wrox Professional Team Foundation Server 2010) about how to create one of these.

Another option would be to create a custom check-in policy... That doesn't seem like the best way to solve the problem though and is riddled with its own issues.

like image 171
Ed Blankenship Avatar answered Oct 11 '22 14:10

Ed Blankenship