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

Re: Log Message Template

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-03-26 16:29:05 CEST

On Mar 26, 2006, at 14:25, Ivan Neeson wrote:

> Is there any way to change the log message template when you run
> `svn ci'?
>
> For example, at the moment you get:
>>
>> --This line, and those below, will be ignored--
>> A file_added
>> M file_changes
>
> is it possible to change the wasy it start out to something like:
>> Changes:
>> Reason:
>> etc...
>> --This line, and those below, will be ignored--
>> A file_added
>> M file_changes

I just found this today by coincidence, which is a workaround, and
would only apply to those using the Unix command line:

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

SVN_EDITOR="rm svn-commit.tmp && cp $REPOS/hooks/log.tmpl svn-
commit.tmp && vi svn-commit.tmp"

I believe TortoiseSVN also has some equivalent of this; you'll have
to check their documentation or mailing list.

There is already an enhancement request for this issue:

http://subversion.tigris.org/issues/show_bug.cgi?id=1973

In any case, if you want to enforce such a logging template, for now
you should write a pre-commit hook which rejects commits whose log
messages do not conform.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Mar 26 16:29:52 2006

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.