188e5d1e1d2a30c5989aa586b74503cde7a3d48e,src/python/pants/backend/project_info/tasks/dependencies.py,Dependencies,__init__,#Dependencies#,39

Before Change


    super().__init__(*args, **kwargs)

    self.is_internal_only = self.get_options().internal_only
    self.is_external_only = self.get_options().external_only
    if self.is_internal_only and self.is_external_only:
      raise TaskError("At most one of --internal-only or --external-only can be selected.")

  def console_output(self, unused_method_argument):

After Change



  def __init__(self, *args, **kwargs):
    super().__init__(*args, **kwargs)
    opts = self.get_options()
    type_configured = not opts.is_default("type")
    if type_configured:
      self.dependency_type = opts.type
      return
    else:
      if opts.internal_only and opts.external_only:
        raise TaskError("At most one of --internal-only or --external-only can be selected.")
      if opts.internal_only:
        self.dependency_type = DependencyType.SOURCE
      elif opts.external_only:
        self.dependency_type = DependencyType.THIRD_PARTY
      else:
        self.dependency_type = DependencyType.SOURCE_AND_THIRD_PARTY
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: pantsbuild/pants
Commit Name: 188e5d1e1d2a30c5989aa586b74503cde7a3d48e
Time: 2020-01-21
Author: ericarellano@me.com
File Name: src/python/pants/backend/project_info/tasks/dependencies.py
Class Name: Dependencies
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 188e5d1e1d2a30c5989aa586b74503cde7a3d48e
Time: 2020-01-21
Author: ericarellano@me.com
File Name: src/python/pants/backend/project_info/tasks/dependencies.py
Class Name: Dependencies
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: a5906b597813ef1b4ba8eefb609a8c38976c04d4
Time: 2016-09-30
Author: kwilson@twopensource.com
File Name: src/python/pants/backend/graph_info/tasks/listtargets.py
Class Name: ListTargets
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 66c4af6eb8ed8c3ccfa7e8b336b04a45115dd063
Time: 2019-12-11
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/subsystems/python_tool_base.py
Class Name: PythonToolBase
Method Name: get_requirement_specs


Project Name: pantsbuild/pants
Commit Name: 2f4abfa38db2c77b7ec2cfb7f117b6be4568d245
Time: 2016-04-21
Author: nitay@actioniq.co
File Name: src/python/pants/ivy/bootstrapper.py
Class Name: Bootstrapper
Method Name: _bootstrap_ivy