b0e41e010172c043ef5257cd220336a8c5f1a137,src/python/pants/base/build_file.py,BuildFile,__init__,#BuildFile#Any#Any#Any#,157

Before Change



    path = os.path.join(self.root_dir, relpath) if relpath else self.root_dir
    self._build_basename = self._BUILD_FILE_PREFIX
    buildfile = os.path.join(path, self._build_basename) if self._isdir(path) else path

    // There is no BUILD file without a prefix so select any viable sibling
    if not self._exists(buildfile) or self._isdir(buildfile):
      for build in self._get_all_build_files(os.path.dirname(buildfile)):

After Change


      buildfile = path

    // There is no BUILD file without a prefix so select any viable sibling
    buildfile_relpath = fast_relpath(buildfile, self.root_dir)
    if not project_tree.exists(buildfile_relpath) or project_tree.isdir(buildfile_relpath):
      for build in self._get_all_build_files(os.path.dirname(buildfile)):
        self._build_basename = build
        buildfile = os.path.join(path, self._build_basename)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: b0e41e010172c043ef5257cd220336a8c5f1a137
Time: 2016-01-22
Author: abishev.timur@gmail.com
File Name: src/python/pants/base/build_file.py
Class Name: BuildFile
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 3442c3da20317e9e3948639bc96481124d74bf43
Time: 2016-01-25
Author: abishev.timur@gmail.com
File Name: src/python/pants/base/build_file.py
Class Name: BuildFile
Method Name: siblings


Project Name: pantsbuild/pants
Commit Name: 42f162d1f8cfe9cea6c0c938ffe1f566c5449f1c
Time: 2019-06-07
Author: dawagner@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/rsc/rsc_compile.py
Class Name: RscCompile
Method Name: _runtool_hermetic


Project Name: pantsbuild/pants
Commit Name: 3442c3da20317e9e3948639bc96481124d74bf43
Time: 2016-01-25
Author: abishev.timur@gmail.com
File Name: src/python/pants/base/build_file.py
Class Name: BuildFile
Method Name: ancestors