80 rev = dlg.getRevision() |
80 rev = dlg.getRevision() |
81 |
81 |
82 if rev is not None: |
82 if rev is not None: |
83 if rev == "": |
83 if rev == "": |
84 rev = "tip" |
84 rev = "tip" |
85 args = [] |
85 args = self.vcs.initCommand("sigcheck") |
86 args.append("sigcheck") |
|
87 args.append(rev) |
86 args.append(rev) |
88 |
87 |
89 dia = HgDialog(self.trUtf8('Verify Signatures'), self.vcs) |
88 dia = HgDialog(self.tr('Verify Signatures'), self.vcs) |
90 res = dia.startProcess(args, repodir) |
89 res = dia.startProcess(args, repodir) |
91 if res: |
90 if res: |
92 dia.exec_() |
91 dia.exec_() |
93 |
92 |
94 def hgGpgSign(self, path): |
93 def hgGpgSign(self, path): |
115 self.vcs.hgGetBranchesList(repodir), |
114 self.vcs.hgGetBranchesList(repodir), |
116 bookmarksList) |
115 bookmarksList) |
117 if dlg.exec_() == QDialog.Accepted: |
116 if dlg.exec_() == QDialog.Accepted: |
118 revision, noCommit, message, keyId, local, force = dlg.getData() |
117 revision, noCommit, message, keyId, local, force = dlg.getData() |
119 |
118 |
120 args = [] |
119 args = self.vcs.initCommand("sign") |
121 args.append("sign") |
|
122 if noCommit: |
120 if noCommit: |
123 args.append("--no-commit") |
121 args.append("--no-commit") |
124 if message: |
122 if message: |
125 args.append("--message") |
123 args.append("--message") |
126 args.append(message) |
124 args.append(message) |
132 if force: |
130 if force: |
133 args.append("--force") |
131 args.append("--force") |
134 if revision: |
132 if revision: |
135 args.append(revision) |
133 args.append(revision) |
136 |
134 |
137 dia = HgDialog(self.trUtf8('Sign Revision'), self.vcs) |
135 dia = HgDialog(self.tr('Sign Revision'), self.vcs) |
138 res = dia.startProcess(args, repodir) |
136 res = dia.startProcess(args, repodir) |
139 if res: |
137 if res: |
140 dia.exec_() |
138 dia.exec_() |