I'm using Microsoft's new Team Foundation Service, http://tfs.visualstudio.com/
I wanted to know whether it was possible to make comments mandatory on check-in, e.g. if I check-in a change without a comment an error will be thrown and my commit rejected.
In Visual Studio (2012).
- Open "Team Explorer".
- Select your "Team Project".
- Click "Settings".
- Under the "Team Project" heading click "Source Control".
- Select the "Check-in Policy" Tab.
- Click "Add..."
- Select "Changeset Comments Policy".
In Visual Studio 2010, you will have to install the Team Foundation Power Toys on all client machines - those without it installed will not be able to check in code.