ed5badda3d518c869aa22d6401f604aa864fcfc4,src/python/pants/build_graph/build_file_address_mapper.py,BuildFileAddressMapper,scan_addresses,#BuildFileAddressMapper#Any#Any#,201
Before Change
:rtype: set of :class:`pants.build_graph.address.Address`
:raises AddressLookupError: if there is a problem parsing a BUILD file
if root and os.path.commonprefix([get_buildroot(), root]) != get_buildroot() :
raise self.InvalidRootError("The given root_dir is not an absolute sub-directory of the "
"build root: {}".format(root))
base_path = os.path.relpath(root, get_buildroot()) if root else None
After Change
base_path = None
if root:
try:
base_path = fast_relpath(root, root_dir)
except ValueError as e:
raise self.InvalidRootError(e)
addresses = set()
try:
for build_file in self._build_file_type.scan_buildfiles(root_dir=root_dir,
base_path=base_path,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pantsbuild/pants
Commit Name: ed5badda3d518c869aa22d6401f604aa864fcfc4
Time: 2015-10-18
Author: john.sirois@gmail.com
File Name: src/python/pants/build_graph/build_file_address_mapper.py
Class Name: BuildFileAddressMapper
Method Name: scan_addresses
Project Name: pantsbuild/pants
Commit Name: 3442c3da20317e9e3948639bc96481124d74bf43
Time: 2016-01-25
Author: abishev.timur@gmail.com
File Name: src/python/pants/build_graph/source_mapper.py
Class Name: LazySourceMapper
Method Name: _find_owners
Project Name: pantsbuild/pants
Commit Name: 3442c3da20317e9e3948639bc96481124d74bf43
Time: 2016-01-25
Author: abishev.timur@gmail.com
File Name: src/python/pants/build_graph/source_mapper.py
Class Name: SpecSourceMapper
Method Name: target_addresses_for_source