ed5badda3d518c869aa22d6401f604aa864fcfc4,src/python/pants/build_graph/build_file_address_mapper.py,BuildFileAddressMapper,scan_addresses,#BuildFileAddressMapper#Any#Any#,201

Before Change


    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

    addresses = set()
    try:

After Change


    root_dir = get_buildroot()
    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,
Italian Trulli
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: 0349078b01ed693223d0c4a65c8a9b8aafe115bc
Time: 2017-05-26
Author: stuhood@twitter.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle


Project Name: pantsbuild/pants
Commit Name: da0989f9f00cf2a9eca58410a721d23a1fdf72bb
Time: 2019-08-19
Author: ericarellano@me.com
File Name: contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/test_checkstyle.py
Class Name: CheckstyleTest
Method Name: build_checker_wheel