On Jun 18, 2011, at 02:35, Hrishikesh Gokhale wrote:

> Thanks for your reply .It would have been nice if subversion supported this 
> feature natively .
> I will check the alternate options suggested by Geoff and Ryan. But if it 
> doesn't work out i may be asked to switch to CVS :( .  

Certainly, if CVS fits your needs better, use that. :) Not every tool 
(Subversion included) is right for every job. You have to decide which features 
are most important to you, then find tool that does those things the best.

Note that some Subversion clients may implement commit message templates, even 
if the Subversion libraries and the official command line client don't. For 
example, TortoiseSVN, the popular Windows Subversion client, has this feature, 
implemented using a custom tsvn:logtemplate property:

http://weblogs.asp.net/akjoshi/archive/2008/07/18/tsvn_3A00_logtemplate-_3A00_-Enforcing-strict-format-to-svn-check_2D00_in-mails.-.aspx

And as I said, you can coerce the standard command line client into doing this 
too, by playing with the EDITOR (or SVN_EDITOR) environment variable. Here is 
an example of that:

http://svn.haxx.se/dev/archive-2006-02/0487.shtml

If you want to force all commits to have such a template, you would write a 
pre-commit hook that blocks commits whose message do not follow your required 
format. There are many examples around showing how to write pre-commit hook 
scripts.


Reply via email to