Re: User Template
From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Sat, 18 Jun 2011 04:28:25 -0500
On Jun 18, 2011, at 02:35, Hrishikesh Gokhale wrote:
> Thanks for your reply .It would have been nice if subversion supported this
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:
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:
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.
This is an archived mail posted to the Subversion Users mailing list.