get workSpace from a changeSet, is possible?
6 answers
A change set can be in zero, one, or many workspaces.
Which of the possibly many workspaces were you hoping would be returned
(or just a random one?).
Cheers,
Geoff
On 4/25/2011 10:08 AM, paulinoal wrote:
Which of the possibly many workspaces were you hoping would be returned
(or just a random one?).
Cheers,
Geoff
On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,
I need your help. I am doing a operational advisor, and i need from a
especific changeSet his workspace associate...
something like that:
IWorkSpace=getCurrentWorkSpace(IChangeSet)...
thanks for all!!!
Hi Geoffrey,
First, thank you very much for answering ...
I try to get the following sequence:
ChangeSet (I have it) -> the workspace which it belongs-> the name of the Stream associated with that WS
Thanks
First, thank you very much for answering ...
I try to get the following sequence:
ChangeSet (I have it) -> the workspace which it belongs-> the name of the Stream associated with that WS
Thanks
A change set can be in zero, one, or many workspaces.
Which of the possibly many workspaces were you hoping would be returned
(or just a random one?).
Cheers,
Geoff
On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,
I need your help. I am doing a operational advisor, and i need from a
especific changeSet his workspace associate...
something like that:
IWorkSpace=getCurrentWorkSpace(IChangeSet)...
thanks for all!!!
Hi,
Let me clarify a little more ...
in the case of making a deliver-operation , would be able to get the workspace origin and destination, but as you know is not the operation I'm doing...is advisor op
I am interested to know the current workspace where is a specifically changeset
Thanks
Let me clarify a little more ...
in the case of making a deliver-operation , would be able to get the workspace origin and destination, but as you know is not the operation I'm doing...is advisor op
I am interested to know the current workspace where is a specifically changeset
Thanks
A change set can be in zero, one, or many workspaces.
Which of the possibly many workspaces were you hoping would be returned
(or just a random one?).
Cheers,
Geoff
On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,
I need your help. I am doing a operational advisor, and i need from a
especific changeSet his workspace associate...
something like that:
IWorkSpace=getCurrentWorkSpace(IChangeSet)...
thanks for all!!!
Note that "the workspace to which it belongs" is not a well defined
question, because a change-set does not "belong" to any particular
workspace. A change-set can appear in the change-set history of zero or
many workspaces. Given a change-set and given a workspace/stream, you
can ask "is this change set in this particular workspace/stream", but to
find out "all the workspaces that contain this change set", you may have
to iterate through all workspaces, asking each one if it contains that
change set in its current history.
Note: I'm not an RTC-SCM API expert, so although I can tell you what is
logically possibly, I can't tell you the name/sequence of the particular
API calls you would need to make (hopefully someone else on the forum
can provide that level of detail).
Cheers,
Geoff
On 4/26/2011 3:38 AM, paulinoal wrote:
question, because a change-set does not "belong" to any particular
workspace. A change-set can appear in the change-set history of zero or
many workspaces. Given a change-set and given a workspace/stream, you
can ask "is this change set in this particular workspace/stream", but to
find out "all the workspaces that contain this change set", you may have
to iterate through all workspaces, asking each one if it contains that
change set in its current history.
Note: I'm not an RTC-SCM API expert, so although I can tell you what is
logically possibly, I can't tell you the name/sequence of the particular
API calls you would need to make (hopefully someone else on the forum
can provide that level of detail).
Cheers,
Geoff
On 4/26/2011 3:38 AM, paulinoal wrote:
Hi Geoffrey,
First, thank you very much for answering ...
I try to get the following sequence:
ChangeSet (I have it) -> the workspace which it belongs-> the
name of the Stream associated with that WS
Thanks
gmclemmwrote:
A change set can be in zero, one, or many workspaces.
Which of the possibly many workspaces were you hoping would be
returned
(or just a random one?).
Cheers,
Geoff
On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,
I need your help. I am doing a operational advisor, and i need from
a
especific changeSet his workspace associate...
something like that:
IWorkSpace=getCurrentWorkSpace(IChangeSet)...
thanks for all!!!
Thanks, applying your logic I have gotten!
This way:
IScmService scmService = getService(IScmService.class);
IChangeSetHandle[] arrayCSH3=scmService.changeSetsInWorkspace(workspacehandle, IChangeSetHandle[] , null, null);
Thanks
This way:
IScmService scmService = getService(IScmService.class);
IChangeSetHandle[] arrayCSH3=scmService.changeSetsInWorkspace(workspacehandle, IChangeSetHandle[] , null, null);
Thanks
Note that "the workspace to which it belongs" is not a well defined
question, because a change-set does not "belong" to any particular
workspace. A change-set can appear in the change-set history of zero or
many workspaces. Given a change-set and given a workspace/stream, you
can ask "is this change set in this particular workspace/stream", but to
find out "all the workspaces that contain this change set", you may have
to iterate through all workspaces, asking each one if it contains that
change set in its current history.
Note: I'm not an RTC-SCM API expert, so although I can tell you what is
logically possibly, I can't tell you the name/sequence of the particular
API calls you would need to make (hopefully someone else on the forum
can provide that level of detail).
Cheers,
Geoff
On 4/26/2011 3:38 AM, paulinoal wrote:
Hi Geoffrey,
First, thank you very much for answering ...
I try to get the following sequence:
ChangeSet (I have it) -> the workspace which it belongs-> the
name of the Stream associated with that WS
Thanks
gmclemmwrote:
A change set can be in zero, one, or many workspaces.
Which of the possibly many workspaces were you hoping would be
returned
(or just a random one?).
Cheers,
Geoff
On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,
I need your help. I am doing a operational advisor, and i need from
a
especific changeSet his workspace associate...
something like that:
IWorkSpace=getCurrentWorkSpace(IChangeSet)...
thanks for all!!!