diff --git a/swh/model/identifiers.py b/swh/model/identifiers.py index 14a40e122b7750edfd88b369ce9282b03639292d..1317bd427079993d0245a6ed31764d560ffd010d 100644 --- a/swh/model/identifiers.py +++ b/swh/model/identifiers.py @@ -283,7 +283,7 @@ def release_identifier(release): format_date_offset(release['date']), b'\n', ]) - components.extend([b'\n', release['comment']]) + components.extend([b'\n', release['message']]) print(b''.join(components).decode('utf-8')) return hashutil.hash_git_data(b''.join(components), 'tag') diff --git a/swh/model/tests/test_identifiers.py b/swh/model/tests/test_identifiers.py index fb93c4b32d0f6fd2605410bd4d06f85494d97714..4770fb4ff01b44519c125a1095bfaaa31ebd49d6 100644 --- a/swh/model/tests/test_identifiers.py +++ b/swh/model/tests/test_identifiers.py @@ -299,7 +299,7 @@ class ReleaseIdentifier(unittest.TestCase): }, 'date': datetime.datetime(2005, 10, 27, 17, 2, 33, tzinfo=linus_tz), - 'comment': b'''\ + 'message': b'''\ Linux 2.6.14 release -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) @@ -316,7 +316,7 @@ wdLOnvj91G4wxYqrvThthbE= 'id': b'&y\x1a\x8b\xcf\x0em3\xf4:\xefv\x82\xbd\xb5U#mV\xde', 'revision': '9ee1c939d1cb936b1f98e8d81aeffab57bae46ab', 'name': 'v2.6.12', - 'comment': b'''\ + 'message': b'''\ This is the final 2.6.12 release -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux)