Mesa (main): pick-ui: show nomination type in the UI
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 10 21:37:38 UTC 2021
Module: Mesa
Branch: main
Commit: 7ec42b5edafcce3f160e6c564bfc5ac616d82ad7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ec42b5edafcce3f160e6c564bfc5ac616d82ad7
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>
---
bin/pick/ui.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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