summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/metadata.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-01-13 15:12:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-19 22:47:22 +0000
commitceed2c7eb51e7d5ff2c7bac2fed79742edeab5e4 (patch)
tree63c46baa91b09f0353747498d4113a01c275ef9f /meta/lib/oeqa/utils/metadata.py
parent927e759bb2d229ff023b58cce498ed3ae19af46a (diff)
downloadpoky-ceed2c7eb51e7d5ff2c7bac2fed79742edeab5e4.tar.gz
oeqa.utils.metadata: rename 'revision' to 'commit'
Revision is a bit vague and could point to a tag, for example. Git commit objects are unambiguous and persistent so be explicit that the element should contain git commit hash. [YOCTO #10590] (From OE-Core rev: a6521b89e86ddba6bd646dd3974d7b0390323b56) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/metadata.py')
-rw-r--r--meta/lib/oeqa/utils/metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py
index b732d372df..2f7e8f2d08 100644
--- a/meta/lib/oeqa/utils/metadata.py
+++ b/meta/lib/oeqa/utils/metadata.py
@@ -74,7 +74,7 @@ def get_layers(layers):
74 repo = Repo(layer, search_parent_directories=True) 74 repo = Repo(layer, search_parent_directories=True)
75 except (InvalidGitRepositoryError, NoSuchPathError): 75 except (InvalidGitRepositoryError, NoSuchPathError):
76 continue 76 continue
77 layer_dict[layer_name]['revision'] = repo.head.commit.hexsha 77 layer_dict[layer_name]['commit'] = repo.head.commit.hexsha
78 try: 78 try:
79 layer_dict[layer_name]['branch'] = repo.active_branch.name 79 layer_dict[layer_name]['branch'] = repo.active_branch.name
80 except TypeError: 80 except TypeError: