[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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
> 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:


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.
Received on 2011-06-18 11:29:01 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.