Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Auto-switching to a branch related to task
Auto-switching to a branch related to task [message #64616] Wed, 28 January 2009 16:31 Go to next message
Mark Rooth is currently offline Mark RoothFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I have several tasks, each using a different branch (Subclipse). I'm
currently trying to get Mylyn to switch to the corresponding branch when
changing the active task.
If this is possible, how?
If not, is there an alternative?

Versions:
Eclipse: 3.4.1
Mylyn: 3.0.2
Subclipse: 1.47

Thanks, Mark
Re: Auto-switching to a branch related to task [message #64640 is a reply to message #64616] Thu, 29 January 2009 01:16 Go to previous messageGo to next message
Mark Phippard is currently offline Mark PhippardFriend
Messages: 129
Registered: July 2009
Senior Member
On 2009-01-28 11:31:26 -0500, w-o-f@gmx.net (Mark Rooth) said:

> I have several tasks, each using a different branch (Subclipse). I'm
> currently trying to get Mylyn to switch to the corresponding branch
> when changing the active task.
> If this is possible, how?
> If not, is there an alternative?
>
> Versions:
> Eclipse: 3.4.1
> Mylyn: 3.0.2
> Subclipse: 1.47

So you are basically saying when you activate a task, you'd like a way
for Mylyn to trigger an SVN Switch to change the project to a branch
for that task?

This feature does not exist. I am curious, does it exist for the CVS
integration? I've never head it before if it does.

How would Mylyn know what branch to switch to? It generally is aware
of "local context" not SCM-specific information.

From a workflow perspective, why do you want this? Do you create a
specific branch in your repository for every task you work on or
something? Most SVN users do not work in that branch-heavy a fashion.
That sounds a bit more like ClearCase UCM. I am not really commenting
on the usefulness of the approach, just trying to understand it.

I do not believe there is currently any "event trigger" between Mylyn
and an SCM provider when a task is activated. Most of the integration
points are user-driven, with the exception being organizing changes
into change sets. If there were some event, I could possibly see
preferences added to the Subclipse/Mylyn integration that would allow
some kind of branching model to be associated with a task. Since Mylyn
has no way to store this information in the task, I'd think it would
have to be based on some kind of naming heuristic that used the taskID
as a branch name or something.

Mark
Re: Auto-switching to a branch related to task [message #64662 is a reply to message #64640] Thu, 29 January 2009 09:07 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Mark and Mark,

I worked on a tool to automate such things some time ago to support my
working with Bugzilla and CVS but canceled the effort because it was too
big.
But I can remember that it was harder to specify *which projects* to
branch/switch than to decide to *which branch* (can be derived from bug id).
I startet with letting the tool embed special data comments into the
bugs (hard to make secure).

Later I felt it would be better to have a dedicated IProject with some
sort of EMF model that drives the process.
If anybody is interested I'd appreciate to explain the model I came up
with:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.net4j/tooling/org.eclipse.net4j.pop/model/image s/?root=Modeling_Project

Cheers
/Eike

----
http://thegordian.blogspot.com



Mark Phippard schrieb:
> On 2009-01-28 11:31:26 -0500, w-o-f@gmx.net (Mark Rooth) said:
>
>> I have several tasks, each using a different branch (Subclipse). I'm
>> currently trying to get Mylyn to switch to the corresponding branch
>> when changing the active task.
>> If this is possible, how?
>> If not, is there an alternative?
>>
>> Versions:
>> Eclipse: 3.4.1
>> Mylyn: 3.0.2
>> Subclipse: 1.47
>
> So you are basically saying when you activate a task, you'd like a way
> for Mylyn to trigger an SVN Switch to change the project to a branch
> for that task?
>
> This feature does not exist. I am curious, does it exist for the CVS
> integration? I've never head it before if it does.
>
> How would Mylyn know what branch to switch to? It generally is aware
> of "local context" not SCM-specific information.
>
> From a workflow perspective, why do you want this? Do you create a
> specific branch in your repository for every task you work on or
> something? Most SVN users do not work in that branch-heavy a
> fashion. That sounds a bit more like ClearCase UCM. I am not really
> commenting on the usefulness of the approach, just trying to
> understand it.
>
> I do not believe there is currently any "event trigger" between Mylyn
> and an SCM provider when a task is activated. Most of the integration
> points are user-driven, with the exception being organizing changes
> into change sets. If there were some event, I could possibly see
> preferences added to the Subclipse/Mylyn integration that would allow
> some kind of branching model to be associated with a task. Since
> Mylyn has no way to store this information in the task, I'd think it
> would have to be based on some kind of naming heuristic that used the
> taskID as a branch name or something.
>
> Mark
>


Re: Auto-switching to a branch related to task [message #595921 is a reply to message #64616] Thu, 29 January 2009 01:16 Go to previous message
Mark Phippard is currently offline Mark PhippardFriend
Messages: 129
Registered: July 2009
Senior Member
On 2009-01-28 11:31:26 -0500, w-o-f@gmx.net (Mark Rooth) said:

> I have several tasks, each using a different branch (Subclipse). I'm
> currently trying to get Mylyn to switch to the corresponding branch
> when changing the active task.
> If this is possible, how?
> If not, is there an alternative?
>
> Versions:
> Eclipse: 3.4.1
> Mylyn: 3.0.2
> Subclipse: 1.47

So you are basically saying when you activate a task, you'd like a way
for Mylyn to trigger an SVN Switch to change the project to a branch
for that task?

This feature does not exist. I am curious, does it exist for the CVS
integration? I've never head it before if it does.

How would Mylyn know what branch to switch to? It generally is aware
of "local context" not SCM-specific information.

From a workflow perspective, why do you want this? Do you create a
specific branch in your repository for every task you work on or
something? Most SVN users do not work in that branch-heavy a fashion.
That sounds a bit more like ClearCase UCM. I am not really commenting
on the usefulness of the approach, just trying to understand it.

I do not believe there is currently any "event trigger" between Mylyn
and an SCM provider when a task is activated. Most of the integration
points are user-driven, with the exception being organizing changes
into change sets. If there were some event, I could possibly see
preferences added to the Subclipse/Mylyn integration that would allow
some kind of branching model to be associated with a task. Since Mylyn
has no way to store this information in the task, I'd think it would
have to be based on some kind of naming heuristic that used the taskID
as a branch name or something.

Mark
Re: Auto-switching to a branch related to task [message #595931 is a reply to message #64640] Thu, 29 January 2009 09:07 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Mark and Mark,

I worked on a tool to automate such things some time ago to support my
working with Bugzilla and CVS but canceled the effort because it was too
big.
But I can remember that it was harder to specify *which projects* to
branch/switch than to decide to *which branch* (can be derived from bug id).
I startet with letting the tool embed special data comments into the
bugs (hard to make secure).

Later I felt it would be better to have a dedicated IProject with some
sort of EMF model that drives the process.
If anybody is interested I'd appreciate to explain the model I came up
with:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.net4j/tooling/org.eclipse.net4j.pop/model/image s/?root=Modeling_Project

Cheers
/Eike

----
http://thegordian.blogspot.com



Mark Phippard schrieb:
> On 2009-01-28 11:31:26 -0500, w-o-f@gmx.net (Mark Rooth) said:
>
>> I have several tasks, each using a different branch (Subclipse). I'm
>> currently trying to get Mylyn to switch to the corresponding branch
>> when changing the active task.
>> If this is possible, how?
>> If not, is there an alternative?
>>
>> Versions:
>> Eclipse: 3.4.1
>> Mylyn: 3.0.2
>> Subclipse: 1.47
>
> So you are basically saying when you activate a task, you'd like a way
> for Mylyn to trigger an SVN Switch to change the project to a branch
> for that task?
>
> This feature does not exist. I am curious, does it exist for the CVS
> integration? I've never head it before if it does.
>
> How would Mylyn know what branch to switch to? It generally is aware
> of "local context" not SCM-specific information.
>
> From a workflow perspective, why do you want this? Do you create a
> specific branch in your repository for every task you work on or
> something? Most SVN users do not work in that branch-heavy a
> fashion. That sounds a bit more like ClearCase UCM. I am not really
> commenting on the usefulness of the approach, just trying to
> understand it.
>
> I do not believe there is currently any "event trigger" between Mylyn
> and an SCM provider when a task is activated. Most of the integration
> points are user-driven, with the exception being organizing changes
> into change sets. If there were some event, I could possibly see
> preferences added to the Subclipse/Mylyn integration that would allow
> some kind of branching model to be associated with a task. Since
> Mylyn has no way to store this information in the task, I'd think it
> would have to be based on some kind of naming heuristic that used the
> taskID as a branch name or something.
>
> Mark
>


Previous Topic:How to query only one bug from eclipse's bugzilla
Next Topic:Jira/Bugzilla connector behind proxy: "Stream Closed" message
Goto Forum:
  


Current Time: Fri Dec 27 07:02:05 GMT 2024

Powered by FUDForum. Page generated in 0.03522 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top