DESCRIPTION

Support 'Open corresponding task' in History and Sync View

In order to quickly see a task for a commit, we need to provide
an adapter between EGit and Mylyn.

Change-Id: I2d265c8b894c1b45c2d4d9186f6696433acba95c
Signed-off-by: Marley Hopkins xxx@xxx.xxx
Signed-off-by: Douglas Trujillo xxx@xxx.xxx

COMMENTS

author: Douglas Trujillo
date: 2011-01-21 20:14:56.000000000

Uploaded patch set 5.

-------------------------------------
author: Douglas Trujillo
date: 2011-01-21 20:20:19.000000000

Patch Set 5: I would prefer that you didn't submit this

- rebased and resolved conflicts
- fixed dependency problem by declaring the egit.mylyn.ui plugin x-friend of the egit.ui plugin

- the action "Open Corresponding Task" fails with

!MESSAGE Problem while parsing task id from comment
!STACK 0
java.lang.IndexOutOfBoundsException: No group 1
	at java.util.regex.Matcher.group(Matcher.java:470)
	at org.eclipse.mylyn.internal.team.ui.templates.CommitTemplateManager.getTaskIdFromCommentOrLabel(CommitTemplateManager.java:74)
	at org.eclipse.mylyn.internal.team.ui.actions.TaskFinder.reconcile(TaskFinder.java:174)
	at org.eclipse.mylyn.internal.team.ui.actions.TaskFinder.initialize(TaskFinder.java:239)
	at org.eclipse.mylyn.internal.team.ui.actions.TaskFinder.<init>(TaskFinder.java:215)
	at org.eclipse.mylyn.internal.team.ui.actions.OpenCorrespondingTaskAction.run(OpenCorrespondingTaskAction.java:66)
	at org.eclipse.mylyn.internal.team.ui.actions.OpenCorrespondingTaskAction.run(OpenCorrespondingTaskAction.java:58)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)

for the commit message notation we use in the egit project (Bug: footer in last paragraph of commit message)

-------------------------------------
