Mesa (staging/22.0): pick/core: dorp the main_sha field

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 17 20:37:33 UTC 2022


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

Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Thu Mar 17 10:14:01 2022 -0700

pick/core: dorp the main_sha field

It isn't actually used, so we don't need it.

---

 bin/pick/core.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bin/pick/core.py b/bin/pick/core.py
index 766749c471f..d805a7be987 100644
--- a/bin/pick/core.py
+++ b/bin/pick/core.py
@@ -42,7 +42,6 @@ if typing.TYPE_CHECKING:
         nominated: bool
         nomination_type: typing.Optional[int]
         resolution: typing.Optional[int]
-        main_sha: typing.Optional[str]
         because_sha: typing.Optional[str]
 
 IS_FIX = re.compile(r'^\s*fixes:\s*([a-f0-9]{6,40})', flags=re.MULTILINE | re.IGNORECASE)
@@ -118,7 +117,6 @@ class Commit:
     nominated: bool = attr.ib(False)
     nomination_type: typing.Optional[NominationType] = attr.ib(None)
     resolution: Resolution = attr.ib(Resolution.UNRESOLVED)
-    main_sha: typing.Optional[str] = attr.ib(None)
     because_sha: typing.Optional[str] = attr.ib(None)
 
     def to_json(self) -> 'CommitDict':
@@ -131,7 +129,7 @@ class Commit:
 
     @classmethod
     def from_json(cls, data: 'CommitDict') -> 'Commit':
-        c = cls(data['sha'], data['description'], data['nominated'], main_sha=data['main_sha'], because_sha=data['because_sha'])
+        c = cls(data['sha'], data['description'], data['nominated'], because_sha=data['because_sha'])
         if data['nomination_type'] is not None:
             c.nomination_type = NominationType(data['nomination_type'])
         if data['resolution'] is not None:



More information about the mesa-commit mailing list