6e2d807a8f676a3a0eac27343dd31c4e7d9bed8d,src/python/pants/engine/exp/scheduler.py,SelectNode,step,#SelectNode#Any#Any#,235

Before Change


      // We computed a value: see whether we can use it.
      literal_value = self._select_literal(dep_state.value, variant_value)
      if literal_value is not None:
        return Return(literal_value)
    if has_waiting_dep:
      return Waiting(dependencies)
    return Throw("No source of {}.".format(self))

After Change


      // TODO: Multiple successful tasks are not currently supported. We should allow for this
      // by adding support for "mergeable" products. see:
      //   https://github.com/pantsbuild/pants/issues/2526
      return Throw(ConflictingProducersError(self.subject, self.product, matches))
    elif len(matches) == 1:
      return Return(matches.values()[0])
    return Noop("No source of {}.".format(self))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 6e2d807a8f676a3a0eac27343dd31c4e7d9bed8d
Time: 2016-02-17
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/scheduler.py
Class Name: SelectNode
Method Name: step


Project Name: pantsbuild/pants
Commit Name: 6e2d807a8f676a3a0eac27343dd31c4e7d9bed8d
Time: 2016-02-17
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/scheduler.py
Class Name: TaskNode
Method Name: step


Project Name: pantsbuild/pants
Commit Name: 387bb116c96863aaf2e07fff278a363e15bbfd34
Time: 2016-06-13
Author: stuhood@gmail.com
File Name: src/python/pants/engine/nodes.py
Class Name: ProjectionNode
Method Name: step