Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 210173 - Allow commit templates per task repository
Summary: Allow commit templates per task repository
Status: RESOLVED DUPLICATE of bug 157342
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: dev   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-17 02:41 EST by Eike Stepper CLA
Modified: 2007-12-12 09:07 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2007-11-17 02:41:28 EST
When I have multiple changesets active in the Synchronize view it happens from time to time that a commit comment consists of several tasks. In my case I frequently have certain changes in my workspace that I don't want to commit (temp changes to config files etc...). For this purpose I create a local task and name it "DO NOT COMMIT". As I said above, from time to time these files get also committed (be it my fault or not). The real problem for me is that the EMFT build scripts generate the release notes out of the commit comments and for my local task there appears a "[1] ..." line which the script resolves against the Eclipse.org Bugzilla repository.

I'd like to configure a different pattern (from "[\d+] ...") only for the local tasks, so that an accidental commit won't mess up my release notes (which is really hard to fix in the CVS *,v files.
Comment 1 Eugene Kuleshov CLA 2007-11-17 12:01:22 EST
Eike, can you please give more details how does it happen that your "DO NOT COMMIT" changeset gets committed? The only way I know is to select it in Synchronize view and run commit and then there is dialog showing commit comment again.

It is now possible to configure commit templates per project, but not per task repository. I often use local tasks when need to prototype something, but those tasks can be related to various projects and per-repository templates  simply won't work in that case.

However, current pattern used for local tasks doesn't make much sense either: "Incomplete - task 342: Some task" (see for example history for org.eclipse.mylyn.releng/3.3/config/build.sh), because "task 342" in that case is a local task only existed in committer environment
Comment 2 Eike Stepper CLA 2007-11-18 02:53:54 EST
As I said, it can be my fault or not, I'm not sure sure after the fact. May be I clicked the wrong button (commit all changesets, which I'd like to disable at all but this is not your arena). Sometimes I got the *feeling* that a file slips into multiple changesets and on commit of one of them both changeset comments get committed. BUT: that's only a feeling, I didn't have the time to proof it yet ;-( and this evening I go to vacation ;-)

In either case it would be very helpful to have the comment templates configurable on a per repository basis. I guess it's some work but it won't be complicated, will it?
Comment 3 Mik Kersten CLA 2007-11-23 17:53:11 EST
Eike: we have this support in the latest weekly build, so it would be great if you could try it out.

  http://www.eclipse.org/mylyn/downloads/
  
In addition to Eugene's comments, note that you can manually create a change set called "DO NOT COMMIT" via the popup menu in the Synchronize view.  I only do this in the Eclipse that I launch my working workspace from, so you approach with local tasks probably makes more sense.

*** This bug has been marked as a duplicate of bug 157342 ***