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

Bug 345661

Summary: API for storing task based SCM configuration in the Mylyn context
Product: z_Archived Reporter: Manuel Doninger <manuel.doninger>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P3 CC: b.muskalla, mik.kersten, mn, sebastian.schmidt2, shawn.minto, steffen.pingel
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 355031, 358554    
Bug Blocks: 309578    
Attachments:
Description Flags
Ability to store a file in the context zip none

Description Manuel Doninger CLA 2011-05-12 16:13:13 EDT
Build Identifier: 

According to my mail to the list and the answer of Steffen (http://dev.eclipse.org/mhonarc/lists/mylyn-dev/msg01249.html) i would request a new API to store task related SCM configuration in the Mylyn context.
For example store the SCM repositories and the branches, which are needed to work on a task, so that the branches can be automatically checked out on task activation. I did a first basic implementation for EGit, without storing the information in the context (http://egit.eclipse.org/r/#change,2609).

The information i would need at the moment in the context would be a unique identifier for the repository and the branchname (multiple entries for multiple repositories should be possible). 
I think, the identifier of the repository should be determined by the particular SCM plugins, it could be a name or a url of a remote repository (for EGit maybe the URL of the remote named origin, if it exists).

Reproducible: Always
Comment 1 Steffen Pingel CLA 2011-05-12 17:21:55 EDT
Thanks for the feature request. This is an interesting idea and I think the context is a good place to track branch information.

Shawn, what are your thoughts on this, how we can best store information of that kind in the context? I have also added this as a discussion item for next weeks call: http://wiki.eclipse.org/Mylyn/Meetings. Manuel, please feel free to join if the time works for you.
Comment 2 Manuel Doninger CLA 2011-05-20 06:07:51 EDT
After the meeting yesterday, i will try to sum up, what i understood (i didn't understand everything, because of bad acoustical quality and some accents).

- The way to store the branch and repository information would be to use the Team Provider API to generate a PSF
- That PSF would then be stored in the zip file beside the context xml

What need to be implemented?

- Of course the support for PSF in EGit (i will watch the actual review changeset and if necessary help to improve it)
- The ability to store the PSF in the zip
- And last the EGit-Mylyn-Plugin to call these APIs

Did i get that right? Please correct me, if i'm wrong or missed something.
Comment 3 Manuel Doninger CLA 2011-06-02 12:08:11 EDT
Created attachment 197241 [details]
Ability to store a file in the context zip

Doesn't work yet - only for discussing in the Mylyn meeting.
Comment 4 Sebastian Schmidt CLA 2012-07-05 08:15:52 EDT
(In reply to comment #0)
> According to my mail to the list and the answer of Steffen
> (http://dev.eclipse.org/mhonarc/lists/mylyn-dev/msg01249.html) i would request a
> new API to store task related SCM configuration in the Mylyn context.

You may have a look at the new ContextContributor-API which was merged yesterday. I think this might fit your needs as it allows to store additional files to the context zip file: https://git.eclipse.org/r/#/c/6052/
Comment 5 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn