You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ivan Neeson <in...@gmail.com> on 2006/03/26 12:25:14 UTC
Log Message Template
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
Thanks in advance
- Ivan
Re: Log Message Template
Posted by Ryan Schmidt <su...@ryandesign.com>.
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