aca4aab4e081ffb0b9d1895e9922f359bb42da1f,src/python/pants/backend/jvm/tasks/ivy_task_mixin.py,IvyResolveFingerprintStrategy,compute_fingerprint,#IvyResolveFingerprintStrategy#Any#,33

Before Change


      return target.payload.fingerprint()
    if isinstance(target, JvmTarget):
      if target.payload.excludes or target.payload.configurations:
        return target.payload.fingerprint(field_keys=("excludes", "configurations"))
    return None


After Change


    self._confs = sorted(confs or [])

  def compute_fingerprint(self, target):
    hasher = sha1()
    for conf in self._confs:
      hasher.update(conf)
    if isinstance(target, JarLibrary):
      hasher.update(target.payload.fingerprint())
      return hasher.hexdigest()
    if isinstance(target, JvmTarget):
      if target.payload.excludes or target.payload.configurations:
        hasher.update(target.payload.fingerprint(field_keys=("excludes", "configurations")))
        return hasher.hexdigest()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: aca4aab4e081ffb0b9d1895e9922f359bb42da1f
Time: 2015-03-19
Author: zundel@squareup.com
File Name: src/python/pants/backend/jvm/tasks/ivy_task_mixin.py
Class Name: IvyResolveFingerprintStrategy
Method Name: compute_fingerprint


Project Name: pantsbuild/pants
Commit Name: 5b5cc4794202532974dc088a686045d12d3f872f
Time: 2015-09-29
Author: wisechengyi@gmail.com
File Name: src/python/pants/base/target.py
Class Name: Target
Method Name: id


Project Name: pantsbuild/pants
Commit Name: fbfb61a0d3d7a80e818e2330ce21d681f1e5ee43
Time: 2015-09-29
Author: wisechengyi@gmail.com
File Name: src/python/pants/base/target.py
Class Name: Target
Method Name: id


Project Name: pantsbuild/pants
Commit Name: 377051a2295a211b4e90509581ba9fcf5869520e
Time: 2015-07-30
Author: codyhgibb@gmail.com
File Name: src/python/pants/backend/core/tasks/task.py
Class Name: TaskBase
Method Name: _options_fingerprint