Mesa (staging/21.2): pick-ui: show nomination type in the UI

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 12 17:09:47 UTC 2021


Module: Mesa
Branch: staging/21.2
Commit: e2d700117bda76d0a7444ac3beda1934ed61ef12
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e2d700117bda76d0a7444ac3beda1934ed61ef12

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 f247859e979..9bd6d1d5d13 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -256,7 +256,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 babb71cdc0d..b9a1c44db67 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