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

Re: Add text to commit log

From: Toby Thain <toby_at_telegraphics.com.au>
Date: Sun, 2 Mar 2008 17:30:15 -0600

On 2-Mar-08, at 11:06 AM, Erling Wegger Linde wrote:

> Thanks for your tip, this looks very useful =)
>
> But how do I do this in practice? Do I need to write some kind of
> script that monitors SVN and checks for new commits? Or is it
> possible to make SVN to start such a script for each commit? Does
> someone have any best practices here? What scripting languages are
> used (I am mostly familiar with Java)?

Actually you probably want to use a post-commit hook here. This can
be written in any language you like (e.g. I use Perl or bash).

Examples:
http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-brief.sh
http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-
verbose.pl

--Toby

>
>
> Thanks again,
> Erling (newbie :)
>
>
> On Thu, Feb 21, 2008 at 3:06 PM, prakash tiwary
> <prakash.tiwary_at_gmail.com> wrote:
>
> Hi Erling,
> I think,You can use post commit hook from there you can can call
> "svn propset " to modify the log message in certain format.
>
> For example:
> svn propset -r revision no --revprop svn:log new message URL
>
> For further informations: http://subversion.tigris.org/
> faq.html#change-log-msg
>
> I wish it will help you.
>
> Thanks & Regards
> Prakash
>
>
>
> On Thu, Feb 21, 2008 at 4:07 PM, Erling Wegger Linde
> <erlingwl_at_gmail.com> wrote:
> Hi,
>
> I'm trying to abstract away different bug trackers such as Jira and
> Trac. If you use their respective Subversion Plugins - Jira relates
> "PROJECT-2" and Trac #2 to their respective issues. I would like to
> provide a uniform way for the user to add Issuekeys to the commit-
> log such as project/2. Furthermore to allow the Trac and Jira
> subversion plugins to recognise these tags I need subversion to
> expand the commitlogs.
>
> An example:
>
> The user enters "this issue is related to project/3"
> Subversion expands this commit log to : "this issue is related to
> project/3 PROJECT-3 #3".
>
> Is it possible to tell subversion to do this (hopefully without
> recompiling - configuration or add-on /plug-in mechanism would be
> preferred) and how?
>
> Any ideas / suggestions would be deeply appreciated!
>
> Thanks, Erling
>
>
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde
>
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde
Received on 2008-03-03 00:30:42 CET

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.