Checking in - Developer Comments & Other Comments  
Author Message
rternier





PostPosted: Team Foundation Server - Version Control, Checking in - Developer Comments & Other Comments Top

When checking in code, we put a requirement in that developers must comment what they did in the "Developers Comment" section (Check-in Notes).

This is not displayed anywhere, in any email or on any web page in TFS. Regular comments are.

Is there a way to display "check in Notes", or instead of doing this, require that developers put comments in the "Comment" section where they see the files they're checking in

This way our CSR's can see what our developers comments are when they check in code.



Visual Studio Team System41  
 
 
Richard Berg MSFT





PostPosted: Team Foundation Server - Version Control, Checking in - Developer Comments & Other Comments Top

You can use a checkin policy to require devs to put comments in the
Comments section. Here's an example:
http://blogs.msdn.com/jmanning/archive/2006/01/21/515858.aspx

As for checkin notes, I believe they are displayed throughout our
product (Changeset dialog, tf changeset /format:detailed). If you have
a web app that helps you work with changesets, it shouldn't be hard to
add checkin notes to it -- they're exposed by the same API as the rest
of the changeset details.

 
 
rternier





PostPosted: Team Foundation Server - Version Control, Checking in - Developer Comments & Other Comments Top

Richard, thanks for the help.

I always see these bits of code that we're somehow supposed to "plug" into TFS. I still have no idea how to do this, and amazed that you can do this.

To me, it seems that you'd have to re-compile TFS in order to accomplish this...


 
 
Richard Berg MSFT





PostPosted: Team Foundation Server - Version Control, Checking in - Developer Comments & Other Comments Top

You should be able to compile James' sample as-is on any machine with
Team Explorer installed. Here's a quick post on installing it:
http://blogs.msdn.com/jmanning/archive/2006/02/07/526778.aspx Jim
Presto's blog also has some introductory material:
http://blogs.msdn.com/jimpresto/default.aspx

 
 
rternier





PostPosted: Team Foundation Server - Version Control, Checking in - Developer Comments & Other Comments Top

THanks for the reply,

So all I need to do is just compile that code, not put the compiled DLL anywhere


 
 
Brian Harry





PostPosted: Team Foundation Server - Version Control, Checking in - Developer Comments & Other Comments Top

You'll need to install the dll on all of the developers machines the VS\common7\ide\privateassemblies directory should do. You also need to create a registry entry under:

HKLM\Software\Microsoft\VisualStudio\8.0\Source Control\Checkin Policies

See the others there for an example. The form is a string key with the name of the assembly and a value that is the path to the DLL.

Brian