991b6233b442369be2310ca58fbd7c4b93f72c89,src/python/pants/backend/core/tasks/what_changed.py,WhatChanged,console_output,#WhatChanged#Any#,37
Before Change
if not self._workspace:
raise TaskError("No workspace provided.")
touched_files = self._get_touched_files()
if self._show_files:
for path in touched_files:
yield path
else:
touched_targets = set()
for path in touched_files:
self._load_build_files(path)
self._compute_owning_targets()
for path in touched_files:
for touched_target in self._owning_targets[path]:
if touched_target not in touched_targets:
touched_targets.add(touched_target)
yield touched_target.address.spec
def _get_touched_files(self):
try:
return self._workspace.touched_files(self._parent)
except Workspace.WorkspaceError as e:
After Change
help="Show changed files instead of the targets that own them.")
def console_output(self, _):
if self.get_options().files:
for f in sorted(self._changed_files()):
yield f
else:
for addr in sorted(self._changed_targets()):
yield addr.spec
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
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
Project Name: pantsbuild/pants
Commit Name: ed0a8b99a9497a179611e0dd772fde31a3129c93
Time: 2015-02-12
Author: nhoward@twopensource.com
File Name: src/python/pants/backend/codegen/tasks/thrift_linter.py
Class Name: ThriftLinter
Method Name: execute
Project Name: pantsbuild/pants
Commit Name: 82e549d1b9263c3f170533613b1bc0ce545541e2
Time: 2014-11-20
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/java/java_compile.py
Class Name: JavaCompile
Method Name: platform_version_info