Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 157342

Summary: allow commit comment templates to be set per repository
Product: z_Archived Reporter: Mik Kersten <mik.kersten>
Component: MylynAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P4 CC: mauromol, steffen.pingel, stepper
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Mik Kersten CLA 2006-09-14 12:06:10 EDT
From discussion on bug 117517.  Another approach would be to set the per-project similar to how other project settings can be global or project-specific.
Comment 1 Mik Kersten CLA 2006-11-11 17:38:27 EST
Would be nice, but not likely we can get to this by 1.0.  But others should feel free to vote if lack of this is getting in the way.
Comment 2 Eugene Kuleshov CLA 2007-02-06 12:55:51 EST
is this a duplicate of bug 150663 ?
Comment 3 Mik Kersten CLA 2007-02-07 13:36:38 EST
Yup, thanks for noticing.

*** This bug has been marked as a duplicate of bug 150663 ***
Comment 4 Mik Kersten CLA 2007-11-23 17:53:11 EST
*** Bug 210173 has been marked as a duplicate of this bug. ***
Comment 5 Mauro Molinari CLA 2012-05-03 11:21:09 EDT
Please reconsider this. This enhancement is marked as a duplicate of bug 150663, while bug 210173 is marked as a duplicate of this.

Actually, bug 150663 was asking for commit template support per project AND per task repository, but only the first part was done.

This enhancement and bug 210173 are instead asking for the second part.

Actually, I find it much more reasonable to have a task repository specific commit template, rather than a project specific commit template. In fact, what is usually the case is that the task repository is an issue tracker with some sort of hooking on commit comments to extract information and add it to the task. I'm thinking of Bugzilla+Scmbug, Trac SVN integration, JIRA SVN integration, etc..

Every solution has a (configurable?) pattern to detect task references within commit comments. For instance:
- Scmbug detects references like "bug #nnnn"
- Trac detects references like [addresses #nnnn]
- JIRA detects references like PROJECT-NNNN
and so on.
From this point of view it would be useful to set on each task repository a specific commit comment template to use whenever I'm committing a changeset related to a task in that repository.

I do not find it useful to have a project specific commit template, simply because in our case we're tracking different type of issues on the same project with different issue trackers (i.e.: user reported bugs with Bugzilla, internal project lifecycle related tasks with Trac, etc.): so we can't identify a commit template for the whole project, but we would need one for each task repository.

As for the templates precedence, I think this would be reasonable:
- if a project specific template is defined, use that
- otherwise, if a task repository specific template is defined, use that
- otherwise use the workspace defined template as a fallback

So, please consider reopening this enhancement request.