806ae3cad27279fb4aa3760afe7772e2d23bce67,src/python/pants/engine/legacy/change_calculator.py,EngineChangeCalculator,iter_changed_target_addresses,#EngineChangeCalculator#Any#,32

Before Change


      pass

    if changed_request.include_dependees == "direct":
      emitted = set()
      for address in changed_addresses:
        for dependee in graph.dependents_of(address):
          if dependee not in emitted:
            emitted.add(dependee)
            yield dependee
    elif changed_request.include_dependees == "transitive":
      for target in graph.transitive_dependees_of_addresses(changed_addresses):
        yield target.address

After Change


    // For dependee finding, we need to parse all build files.
    product_iter = (t
                    for targets in self._scheduler.product_request(HydratedTargets, [DescendantAddresses("")])
                    for t in targets.dependencies)
    graph = _HydratedTargetDependentGraph.from_iterable(target_types_from_symbol_table(self._symbol_table),
                                                        product_iter)

    if changed_request.include_dependees == "direct":
      for address in graph.dependents_of_addresses(changed_addresses):
        yield address
    elif changed_request.include_dependees == "transitive":
      for address in graph.transitive_dependents_of_addresses(changed_addresses):
        yield address
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: pantsbuild/pants
Commit Name: 806ae3cad27279fb4aa3760afe7772e2d23bce67
Time: 2017-10-24
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/change_calculator.py
Class Name: EngineChangeCalculator
Method Name: iter_changed_target_addresses


Project Name: pantsbuild/pants
Commit Name: ac0b7e4b3d8267c682b2e821f8db592ca94103e3
Time: 2018-03-18
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/graph.py
Class Name: LegacyBuildGraph
Method Name: _inject_specs


Project Name: pantsbuild/pants
Commit Name: 806ae3cad27279fb4aa3760afe7772e2d23bce67
Time: 2017-10-24
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/change_calculator.py
Class Name: EngineChangeCalculator
Method Name: iter_changed_target_addresses


Project Name: pantsbuild/pants
Commit Name: 991b6233b442369be2310ca58fbd7c4b93f72c89
Time: 2014-12-23
Author: tinystatemachine@gmail.com
File Name: src/python/pants/backend/core/tasks/what_changed.py
Class Name: WhatChanged
Method Name: console_output