Mesa (staging/21.1): pick-ui: show nomination type in the UI
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 10 21:42:10 UTC 2021
Module: Mesa
Branch: staging/21.1
Commit: 62c44560ff73f6b290144fea072560c377d7c28e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=62c44560ff73f6b290144fea072560c377d7c28e
Author: Eric Engestrom <eric at engestrom.ch>
Date: Mon Aug 9 21:23:08 2021 +0100
pick-ui: show nomination type in the UI
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12289>
(cherry picked from commit 7ec42b5edafcce3f160e6c564bfc5ac616d82ad7)
---
.pick_status.json | 2 +-
bin/pick/ui.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.pick_status.json b/.pick_status.json
index df0c8b975b4..15bc960922f 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -13,7 +13,7 @@
"description": "pick-ui: show nomination type in the UI",
"nominated": true,
"nomination_type": 0,
- "resolution": 0,
+ "resolution": 1,
"main_sha": null,
"because_sha": null
},
diff --git a/bin/pick/ui.py b/bin/pick/ui.py
index 3337d7dbd26..9f0d739c336 100644
--- a/bin/pick/ui.py
+++ b/bin/pick/ui.py
@@ -66,7 +66,8 @@ class CommitWidget(urwid.Text):
_selectable = True
def __init__(self, ui: 'UI', commit: 'core.Commit'):
- super().__init__(f'{commit.sha[:10]} {commit.description}')
+ reason = commit.nomination_type.name.ljust(6)
+ super().__init__(f'{reason} {commit.sha[:10]} {commit.description}')
self.ui = ui
self.commit = commit
More information about the mesa-commit
mailing list