Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Automatic change flow between streams?

I would like to have 2 source code streams where one is a subset of the other (is one has all the components, the other has a subset of components). I want to keep the common components in sync between the 2 streams. Is there a way to have changes flow automatically between the 2 streams (either in one direction or both)?

0 votes



6 answers

Permanent link
amulholl wrote:
I would like to have 2 source code streams where one is a subset of
the other (is one has all the components, the other has a subset of
components). I want to keep the common components in sync between
the 2 streams. Is there a way to have changes flow automatically
between the 2 streams (either in one direction or both)?

No. A person needs to use a repository workspace to move the changes
between the two streams.

If there are no merge conflicts, it's pretty easy to do. I think it's
nine mouse clicks to synchronize changes both ways. It becomes more
involved if there are merge conflicts. It would be nice if this could
be more automated, but the lack of this feature shouldn't be a show stopper.

0 votes


Permanent link
There is no built-in mechanism for this, but you probably could
implement something like this as a post-delivery process hook.
Alternatively, you could just document in the rules of the road for that
project that users should declare in their workspaces that the common
components flow from a common stream, while the non-common components
flow from different streams. Then no "automatic flow" is needed.

Cheers,
Geoff

amulholl wrote:
I would like to have 2 source code streams where one is a subset of
the other (is one has all the components, the other has a subset of
components). I want to keep the common components in sync between
the 2 streams. Is there a way to have changes flow automatically
between the 2 streams (either in one direction or both)?

0 votes


Permanent link
Hi Geoff,

Is it possible to configure build engine from two streams then? Any example?

Regards,

Roman

There is no built-in mechanism for this, but you probably could
implement something like this as a post-delivery process hook.
Alternatively, you could just document in the rules of the road for that
project that users should declare in their workspaces that the common
components flow from a common stream, while the non-common components
flow from different streams. Then no "automatic flow" is needed.

Cheers,
Geoff

amulholl wrote:
I would like to have 2 source code streams where one is a subset of
the other (is one has all the components, the other has a subset of
components). I want to keep the common components in sync between
the 2 streams. Is there a way to have changes flow automatically
between the 2 streams (either in one direction or both)?

0 votes


Permanent link
The workspace used for a build is declared in the build definition. To
use the "shared component" approach, you would configure this build
workspace (using the RTC workspace editor) to flow the appropriate
components with the appropriate streams. When you select the "accept
before build" option, it will accept changes from the declared flow
target for each component. Note that you need to be careful to have
only a single flow target (stream) for a given component, or else the
stream to accept from will be ambiguous.

Cheers,
Geoff

roman.smirak wrote:
Hi Geoff,

Is it possible to configure build engine from two streams then? Any
example?

Regards,

Roman

gmclemmwrote:
There is no built-in mechanism for this, but you probably could
implement something like this as a post-delivery process hook.
Alternatively, you could just document in the rules of the road for
that
project that users should declare in their workspaces that the
common
components flow from a common stream, while the non-common
components
flow from different streams. Then no "automatic flow" is
needed.
Cheers,
Geoff

amulholl wrote:
I would like to have 2 source code streams where one is a subset of
the other (is one has all the components, the other has a subset of
components). I want to keep the common components in sync between
the 2 streams. Is there a way to have changes flow automatically
between the 2 streams (either in one direction or both)?

0 votes


Permanent link
Ok, but only one stream can be set as current - does it mean "Accept all" function checks out the latest changes from all streams configured (= flow targets of the workshpace)?

What if there is any conflict between streams?

Or shall I replace component manually (Remove component from workspace definition, Add new from stream...) without configuring Flow target?


Thanks!

Roman

The workspace used for a build is declared in the build definition. To
use the "shared component" approach, you would configure this build
workspace (using the RTC workspace editor) to flow the appropriate
components with the appropriate streams. When you select the "accept
before build" option, it will accept changes from the declared flow
target for each component. Note that you need to be careful to have
only a single flow target (stream) for a given component, or else the
stream to accept from will be ambiguous.

Cheers,
Geoff

0 votes


Permanent link
I'm not an expert at this (so I hope the build gurus will correct me if
I'm wrong), but my understanding is that when you set the "accept before
build" option on your build, it will accept from all the flow targets,
not just the "current" one. So you should configure your flow targets
to be "selective" (i.e. only flow with specific components), and make
sure that no two flow targets flow with the same component.

Cheers,
Geoff

roman.smirak wrote:
Ok, but only one stream can be set as current - does it mean
"Accept all" function checks out the latest changes from
all streams configured (= flow targets of the workshpace)?

What if there is any conflict between streams?

Or shall I replace component manually (Remove component from workspace
definition, Add new from stream...) without configuring Flow target?


Thanks!

Roman

gmclemmwrote:
The workspace used for a build is declared in the build definition.
To
use the "shared component" approach, you would configure
this build
workspace (using the RTC workspace editor) to flow the appropriate
components with the appropriate streams. When you select the
"accept
before build" option, it will accept changes from the declared
flow
target for each component. Note that you need to be careful to have

only a single flow target (stream) for a given component, or else
the
stream to accept from will be ambiguous.

Cheers,
Geoff

roman.smirak wrote:
Hi Geoff,

Is it possible to configure build engine from two streams then? Any
example?

Regards,

Roman

gmclemmwrote:
There is no built-in mechanism for this, but you probably could
implement something like this as a post-delivery process hook.
Alternatively, you could just document in the rules of the road for
that
project that users should declare in their workspaces that the
common
components flow from a common stream, while the non-common
components
flow from different streams. Then no "automatic flow" is
needed.
Cheers,
Geoff

amulholl wrote:
I would like to have 2 source code streams where one is a subset of
the other (is one has all the components, the other has a subset of
components). I want to keep the common components in sync between
the 2 streams. Is there a way to have changes flow automatically
between the 2 streams (either in one direction or both)?


0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 09 '10, 1:58 p.m.

Question was seen: 9,432 times

Last updated: Apr 09 '10, 1:58 p.m.

Confirmation Cancel Confirm