12 from PyQt4.QtGui import QDialog |
12 from PyQt4.QtGui import QDialog |
13 |
13 |
14 from ..HgExtension import HgExtension |
14 from ..HgExtension import HgExtension |
15 from ..HgDialog import HgDialog |
15 from ..HgDialog import HgDialog |
16 from ..HgRevisionSelectionDialog import HgRevisionSelectionDialog |
16 from ..HgRevisionSelectionDialog import HgRevisionSelectionDialog |
17 |
|
18 from .HgGpgSignaturesDialog import HgGpgSignaturesDialog |
|
19 from .HgGpgSignDialog import HgGpgSignDialog |
|
20 |
17 |
21 |
18 |
22 class Gpg(HgExtension): |
19 class Gpg(HgExtension): |
23 """ |
20 """ |
24 Class implementing the fetch extension interface. |
21 Class implementing the fetch extension interface. |
44 """ |
41 """ |
45 Public method used to list all signed changesets. |
42 Public method used to list all signed changesets. |
46 |
43 |
47 @param path directory name of the project (string) |
44 @param path directory name of the project (string) |
48 """ |
45 """ |
|
46 from .HgGpgSignaturesDialog import HgGpgSignaturesDialog |
49 self.gpgSignaturesDialog = HgGpgSignaturesDialog(self.vcs) |
47 self.gpgSignaturesDialog = HgGpgSignaturesDialog(self.vcs) |
50 self.gpgSignaturesDialog.show() |
48 self.gpgSignaturesDialog.show() |
51 self.gpgSignaturesDialog.show() |
49 self.gpgSignaturesDialog.show() |
52 self.gpgSignaturesDialog.start(path) |
50 self.gpgSignaturesDialog.start(path) |
53 |
51 |
105 if self.vcs.isExtensionActive("bookmarks"): |
103 if self.vcs.isExtensionActive("bookmarks"): |
106 bookmarksList = \ |
104 bookmarksList = \ |
107 self.vcs.getExtensionObject("bookmarks").hgGetBookmarksList(repodir) |
105 self.vcs.getExtensionObject("bookmarks").hgGetBookmarksList(repodir) |
108 else: |
106 else: |
109 bookmarksList = None |
107 bookmarksList = None |
|
108 from .HgGpgSignDialog import HgGpgSignDialog |
110 dlg = HgGpgSignDialog(self.vcs.hgGetTagsList(repodir), |
109 dlg = HgGpgSignDialog(self.vcs.hgGetTagsList(repodir), |
111 self.vcs.hgGetBranchesList(repodir), |
110 self.vcs.hgGetBranchesList(repodir), |
112 bookmarksList) |
111 bookmarksList) |
113 if dlg.exec_() == QDialog.Accepted: |
112 if dlg.exec_() == QDialog.Accepted: |
114 revision, noCommit, message, keyId, local, force = dlg.getData() |
113 revision, noCommit, message, keyId, local, force = dlg.getData() |