[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: Jeyanthan <jeyanthan_at_collab.net>
Date: Sat, 18 Jun 2011 17:28:55 +0530

> I am new to SVN installation . I am unable to find a way to add a custom
> template which would get fired up when a user performs a commit (in his editor)
> . The template can be like:
> Bug Id:
> Root Cause:
> Impact Areas if any:
> Code Reviewed :
> Requesting for your help.

I believe the following way would help you achieve your requirement.

Write a custom pre-commit hook script which checks if the user's comment
consists of the custom format that you have mentioned in the script,
else it should throw an error as you mention.

For Eg : Make a script which forces users to follows the following format.

svn commit -m "[bug_id=XXX] [root_cause=your comment] etc"

Like Ryan said, you may also make it sophisticated to add commit message
by using an editor instead of barely adding them in a line as mentioned

Hope it helps.

Received on 2011-06-18 14:06:43 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.