fac976efbc71aef758382015854f550c57d96461,src/python/pants/backend/core/tasks/sorttargets.py,SortTargets,console_output,#SortTargets#Any#,31

Before Change


    if self._reverse:
      tsorted = reversed(tsorted)

    roots = set(root.address.spec for root in self.context.target_roots)
    for address in tsorted:
      if address in roots:
        yield address

After Change


  def console_output(self, targets):
    sorted_targets = sort_targets(targets)
    // sort_targets already returns targets in reverse topologically sorted order.
    if not self.get_options().reverse:
      sorted_targets = reversed(sorted_targets)
    for target in sorted_targets:
      if target in self.context.target_roots:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: fac976efbc71aef758382015854f550c57d96461
Time: 2015-11-13
Author: tansy.arron@gmail.com
File Name: src/python/pants/backend/core/tasks/sorttargets.py
Class Name: SortTargets
Method Name: console_output


Project Name: pantsbuild/pants
Commit Name: 37cae6e0d11b60546a545d6c15a4b278218d0b10
Time: 2015-01-06
Author: tinystatemachine@gmail.com
File Name: src/python/pants/backend/core/tasks/what_changed.py
Class Name: ChangedFileTaskMixin
Method Name: _changed_targets


Project Name: pantsbuild/pants
Commit Name: 6d72a3345b1ba2ef9982c61ca6a6ea07c49bbaa1
Time: 2018-12-20
Author: tyurina.katty@yandex.ru
File Name: src/python/pants/backend/project_info/tasks/filedeps.py
Class Name: FileDeps
Method Name: console_output