Lines Matching refs:commit
68 def __init__(self, ui: 'UI', commit: 'core.Commit'):
69 reason = commit.nomination_type.name.ljust(6)
70 super().__init__(f'{commit.date()} {reason} {commit.sha[:10]} {commit.description}')
72 self.commit = commit
76 result, err = await self.commit.apply(self.ui)
84 await self.commit.denominate(self.ui)
89 await self.commit.backport(self.ui)
172 for commit in reversed(list(itertools.chain(self.new_commits, self.previous_commits))):
173 if commit.nominated and commit.resolution is core.Resolution.UNRESOLVED:
174 b = urwid.AttrMap(CommitWidget(self, commit), None, focus_map='reversed')
183 def remove_commit(self, commit: CommitWidget) -> None:
185 if c.base_widget is commit:
193 """Add an additional commit which isn't nominated."""
209 commit = c
214 await commit.apply(self)
232 def chp_failed(self, commit: 'CommitWidget', err: str) -> None:
239 Failed to apply {commit.commit.sha} {commit.commit.description} with the following error:
249 can_btn, 'click', lambda _: asyncio.ensure_future(commit.commit.abort_cherry(self, err)))
254 ok_btn, 'click', lambda _: asyncio.ensure_future(commit.commit.resolve(self)))
256 ok_btn, 'click', lambda _: self.remove_commit(commit))