def _commits_selected(self, commits): if len(commits) != 1: return commit = commits[0] sha1 = commit.sha1 merge = len(commit.parents) > 1 self.diff.setText(gitcmds.diff_info(sha1, merge=merge)) qtutils.set_clipboard(sha1)
def commits_selected(self, commits): if len(commits) != 1: return commit = commits[0] sha1 = commit.sha1 self.diff.setText(gitcmds.diff_info(sha1)) email = commit.email or "" summary = commit.summary or "" author = commit.author or "" template_args = {"author": author, "email": email, "summary": summary} self.gravatar_label.get_email(email) author_text = """%(author)s <""" """<a href="mailto:%(email)s">""" """%(email)s</a>>""" % template_args author_template = "%(author)s <%(email)s>" % template_args self.author_label.setTemplate(author_text, author_template) self.summary_label.setPlainText(summary)
def run(self): diff = gitcmds.diff_info(self.sha1, filename=self.filename) self.reflector.emit(SIGNAL('diff'), diff)
def task(self): return gitcmds.diff_info(self.sha1, filename=self.filename)
def run(self): diff = gitcmds.diff_info(self.sha1) self.reflector.emit(SIGNAL('diff'), diff)
def run(self): diff = gitcmds.diff_info(self.sha1, filename=self.filename) self.reflector.emit(SIGNAL("diff(PyQt_PyObject)"), diff)