equal
deleted
inserted
replaced
436 (version_id, version) <- versions1.iterator |
436 (version_id, version) <- versions1.iterator |
437 command_execs = assignments1(version_id).command_execs |
437 command_execs = assignments1(version_id).command_execs |
438 (_, node) <- version.nodes.entries |
438 (_, node) <- version.nodes.entries |
439 command <- node.commands.iterator |
439 command <- node.commands.iterator |
440 } { |
440 } { |
441 val id = command.id |
441 if (!commands1.isDefinedAt(command.id)) |
442 if (!commands1.isDefinedAt(id)) |
442 commands.get(command.id).foreach(st => commands1 += (command.id -> st)) |
443 commands.get(id).foreach(st => commands1 += (id -> st)) |
443 for (exec_id <- command_execs.getOrElse(command.id, Nil)) { |
444 for (exec_id <- command_execs.getOrElse(id, Nil)) { |
|
445 if (!execs1.isDefinedAt(exec_id)) |
444 if (!execs1.isDefinedAt(exec_id)) |
446 execs.get(exec_id).foreach(st => execs1 += (exec_id -> st)) |
445 execs.get(exec_id).foreach(st => execs1 += (exec_id -> st)) |
447 } |
446 } |
448 } |
447 } |
449 copy(versions = versions1, commands = commands1, execs = execs1, assignments = assignments1) |
448 copy(versions = versions1, commands = commands1, execs = execs1, assignments = assignments1) |