It's all about the answers!

Ask a question

Accept baseline from one stream to another in the server plugin


Mike Brouwers (341318) | asked Sep 16 '14, 2:38 p.m.
retagged Sep 16 '14, 2:48 p.m. by Remy Suen (426224)
 Hi,

I have 2 streams, let's call them streamA and streamB.

I have streamA as a flow target of streamB.
I create a new baseline in streamB.
I would like to accept this new baseline into streamA through the server api.
I am currently using the acceptCombined in the ScmService class but it checks if this operation is occuring on a workspace or a stream. If the operation is performed on a stream I get the "InvalidStreamOperation" exception "Illegal operation ('accept') for stream"

Is it possible to accept the changes directly on the stream? If so what method do we need to use to get this working?

Thanks,

Mike

Accepted answer


permanent link
Remy Suen (426224) | answered Sep 16 '14, 2:47 p.m.
Hi Mike, streams cannot "accept" from another stream. Just have stream B deliver the baseline to stream A instead.
Mike Brouwers selected this answer as the correct answer

One other answer



permanent link
Mike Brouwers (341318) | answered Sep 16 '14, 2:57 p.m.
 Thanks!

that worked! 

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.