Esempio n. 1
0
 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)
Esempio n. 2
0
    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 &lt;""" """<a href="mailto:%(email)s">""" """%(email)s</a>&gt;""" % template_args

        author_template = "%(author)s <%(email)s>" % template_args
        self.author_label.setTemplate(author_text, author_template)
        self.summary_label.setPlainText(summary)
Esempio n. 3
0
 def run(self):
     diff = gitcmds.diff_info(self.sha1, filename=self.filename)
     self.reflector.emit(SIGNAL('diff'), diff)
Esempio n. 4
0
 def run(self):
     diff = gitcmds.diff_info(self.sha1, filename=self.filename)
     self.reflector.emit(SIGNAL('diff'), diff)
Esempio n. 5
0
 def task(self):
     return gitcmds.diff_info(self.sha1, filename=self.filename)
Esempio n. 6
0
 def run(self):
     diff = gitcmds.diff_info(self.sha1)
     self.reflector.emit(SIGNAL('diff'), diff)
Esempio n. 7
0
 def run(self):
     diff = gitcmds.diff_info(self.sha1, filename=self.filename)
     self.reflector.emit(SIGNAL("diff(PyQt_PyObject)"), diff)
Esempio n. 8
0
 def run(self):
     diff = gitcmds.diff_info(self.sha1)
     self.reflector.emit(SIGNAL('diff'), diff)
Esempio n. 9
0
 def task(self):
     return gitcmds.diff_info(self.sha1, filename=self.filename)