Lines Matching +full:pick +full:- +full:ui

1 # Copyright © 2019-2020 Intel Corporation
21 """Urwid UI for pick script."""
46 def __init__(self, *args, ui: 'UI', **kwargs): argument
48 self.ui = ui
53 def __init__(self, *args, ui: 'UI', **kwargs): argument
55 self.ui = ui
57 def keypress(self, size: int, key: str) -> typing.Optional[str]:
61 asyncio.ensure_future(self.ui.update())
63 self.ui.add()
75 def __init__(self, ui: 'UI', commit: 'core.Commit'): argument
78 self.ui = ui
81 async def apply(self) -> None:
82 async with self.ui.git_lock:
83 result, err = await self.commit.apply(self.ui)
85 self.ui.chp_failed(self, err)
87 self.ui.remove_commit(self)
89 async def denominate(self) -> None:
90 async with self.ui.git_lock:
91 await self.commit.denominate(self.ui)
92 self.ui.remove_commit(self)
94 async def backport(self) -> None:
95 async with self.ui.git_lock:
96 await self.commit.backport(self.ui)
97 self.ui.remove_commit(self)
99 def keypress(self, size: int, key: str) -> typing.Optional[str]:
121 def render(self, size: typing.Tuple[int], focus: bool = False) -> urwid.Canvas:
129 class UI: class
150 def _get_current_commit(self) -> typing.Optional['core.Commit']:
154 def _change_notes_cb(self) -> None:
161 def _change_notes_focus_cb(self, notes: 'FocusAwareEdit', focus: 'bool') -> 'None':
172 def _make_body(self) -> 'urwid.Columns':
173 commits = CommitList(self.commit_list, ui=self)
181 def _make_footer(self) -> 'urwid.Columns':
185 urwid.Text('[C]herry Pick'),
192 def _make_root(self) -> 'RootWidget':
193 …turn RootWidget(self.body, urwid.LineBox(self.header), urwid.LineBox(self.footer), 'body', ui=self)
195 def render(self) -> 'WidgetType':
199 def load(self) -> None:
202 async def update(self) -> None:
209 sha = f'{version}-branchpoint'
229 async def feedback(self, text: str) -> None:
231 latest_item_index = len(self.feedback_box) - 1
234 def remove_commit(self, commit: CommitWidget) -> None:
243 def add(self) -> None:
247 def reset_cb(_) -> None:
250 async def apply_cb(edit: urwid.Edit) -> None:
283 def chp_failed(self, commit: 'CommitWidget', err: str) -> None:
286 def reset_cb(_) -> None:
295 cherry-pick (`git cherry-pick --continue`) and select ok."""))