08bc2add6e98feefdce36f6f094a15e3e598b1e7,src/python/pants/engine/exp/legacy/commands.py,,list,#,39

Before Change


  Lists all addresses under the current build root.

  build_root = get_buildroot()
  source_roots = SourceRoots(build_root, tuple())
  symbol_table_cls = LegacyTable
  address_mapper = AddressMapper(build_root,
                                 symbol_table_cls=symbol_table_cls,
                                 parser_cls=LegacyPythonCallbacksParser)

  // Create a Scheduler containing only the graph tasks, with a single installed goal that
  // requests an Address.
  goal = "list"
  tasks = create_graph_tasks(address_mapper, symbol_table_cls, source_roots)
  scheduler = LocalScheduler({goal: Address}, symbol_table_cls, tasks)

  // Execute a request for the root.
  build_request = BuildRequest(goals=[goal], spec_roots=[DescendantAddresses(build_root)])

After Change


  // Create a Scheduler containing only the graph tasks, with a single installed goal that
  // requests an Address.
  goal = "list"
  tasks = create_fs_tasks(build_root) + create_graph_tasks(address_mapper, symbol_table_cls)
  scheduler = LocalScheduler({goal: Address}, symbol_table_cls, tasks)

  // Execute a request for the root.
  build_request = BuildRequest(goals=[goal], subjects=[DescendantAddresses("")])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pantsbuild/pants
Commit Name: 08bc2add6e98feefdce36f6f094a15e3e598b1e7
Time: 2016-02-23
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/legacy/commands.py
Class Name:
Method Name: list


Project Name: pantsbuild/pants
Commit Name: 08bc2add6e98feefdce36f6f094a15e3e598b1e7
Time: 2016-02-23
Author: stuhood@gmail.com
File Name: tests/python/pants_test/engine/exp/test_graph.py
Class Name: GraphTestBase
Method Name: create


Project Name: pantsbuild/pants
Commit Name: 08bc2add6e98feefdce36f6f094a15e3e598b1e7
Time: 2016-02-23
Author: stuhood@gmail.com
File Name: tests/python/pants_test/engine/exp/test_mapper.py
Class Name: AddressMapperTest
Method Name: setUp