Skip to content

Commit

Permalink
set flowtarget of stream to avoid conflicts (fixes #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
WtfJoke committed Mar 4, 2015
1 parent 026888e commit 0f4272b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def startmigration():
for streamuuid in streamuuids:
streamname = config.streamnames[streamuuids.index(streamuuid)]
git.branch(streamname)
rtcworkspace.setnewflowtargets(streamuuid)
componentbaselineentries = rtc.getcomponentbaselineentriesfromstream(streamuuid)
rtc.acceptchangesintoworkspace(rtc.getchangeentriesofstreamcomponents(componentbaselineentries))
shouter.shout("All changes of components of stream '%s' accepted" % streamname)
Expand Down
3 changes: 1 addition & 2 deletions rtcFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def setcomponentstobaseline(self, componentbaselineentries, streamuuid):
shell.execute(replacecommand)

def setnewflowtargets(self, streamuuid):
shouter.shout("Replacing Flowtargets")
self.removedefaultflowtarget()
shouter.shout("Set new Flowtargets")
shell.execute("lscm add flowtarget -r %s %s %s"
% (self.repo, self.workspace, streamuuid))
shell.execute("lscm set flowtarget -r %s %s --default --current %s"
Expand Down

0 comments on commit 0f4272b

Please sign in to comment.