b6d09b1b55001270cf793aea28ccd1eb439a598f,src/python/pants/backend/jvm/artifact.py,Artifact,_compute_fingerprint,#Artifact#,54

Before Change


    return hash((self.org, self.name))

  def _compute_fingerprint(self):
    return stable_json_sha1((self.org, self.name, self.rev))

  def __ne__(self, other):
    return not self.__eq__(other)

After Change


    return hash((self.org, self.name))

  def _compute_fingerprint(self):
    data = (self.org, self.name)

    // NB: The None occupies the legacy rev 3rd slot.  The rev was never populated and always None,
    // so maintaining the slot and its value just serve to preserve the fingerprint and thus
    // containing targets in caches out in the world.
    data += (None,)

    if self.publication_metadata:
      fingerprint = self.publication_metadata.fingerprint()
      if fingerprint:
        data += (fingerprint,)
    return stable_json_sha1(data)

  def __ne__(self, other):
    return not self.__eq__(other)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: b6d09b1b55001270cf793aea28ccd1eb439a598f
Time: 2015-05-08
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/artifact.py
Class Name: Artifact
Method Name: _compute_fingerprint


Project Name: pantsbuild/pants
Commit Name: b225ea43ecf2357e59873a509257658c9aef5179
Time: 2015-04-19
Author: zundel@squareup.com
File Name: src/python/pants/backend/jvm/targets/jvm_binary.py
Class Name: Duplicate
Method Name: fingerprint


Project Name: pantsbuild/pants
Commit Name: b225ea43ecf2357e59873a509257658c9aef5179
Time: 2015-04-19
Author: zundel@squareup.com
File Name: src/python/pants/backend/jvm/targets/jvm_binary.py
Class Name: JarRule
Method Name: fingerprint