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)