eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/gpg.py

changeset 8143
2c730d5fd177
parent 7971
ff2971513d6d
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
53 if rev is None: 53 if rev is None:
54 dlg = HgRevisionSelectionDialog( 54 dlg = HgRevisionSelectionDialog(
55 self.vcs.hgGetTagsList(), 55 self.vcs.hgGetTagsList(),
56 self.vcs.hgGetBranchesList(), 56 self.vcs.hgGetBranchesList(),
57 self.vcs.hgGetBookmarksList()) 57 self.vcs.hgGetBookmarksList())
58 if dlg.exec() == QDialog.Accepted: 58 if dlg.exec() == QDialog.DialogCode.Accepted:
59 rev = dlg.getRevision(revset=False) 59 rev = dlg.getRevision(revset=False)
60 60
61 if rev is not None: 61 if rev is not None:
62 if rev == "": 62 if rev == "":
63 rev = "tip" 63 rev = "tip"
79 if revisions is None: 79 if revisions is None:
80 from .HgGpgSignDialog import HgGpgSignDialog 80 from .HgGpgSignDialog import HgGpgSignDialog
81 dlg = HgGpgSignDialog(self.vcs.hgGetTagsList(), 81 dlg = HgGpgSignDialog(self.vcs.hgGetTagsList(),
82 self.vcs.hgGetBranchesList(), 82 self.vcs.hgGetBranchesList(),
83 self.vcs.hgGetBookmarksList()) 83 self.vcs.hgGetBookmarksList())
84 if dlg.exec() == QDialog.Accepted: 84 if dlg.exec() == QDialog.DialogCode.Accepted:
85 revision, noCommit, message, keyId, local, force = ( 85 revision, noCommit, message, keyId, local, force = (
86 dlg.getData() 86 dlg.getData()
87 ) 87 )
88 if revision: 88 if revision:
89 revisions = [revision] 89 revisions = [revision]

eric ide

mercurial