Plugins/VcsPlugins/vcsMercurial/HgRevisionSelectionDialog.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1011
0b118aefae5b
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
9 9
10 from PyQt4.QtGui import QDialog 10 from PyQt4.QtGui import QDialog
11 11
12 from .Ui_HgRevisionSelectionDialog import Ui_HgRevisionSelectionDialog 12 from .Ui_HgRevisionSelectionDialog import Ui_HgRevisionSelectionDialog
13 13
14
14 class HgRevisionSelectionDialog(QDialog, Ui_HgRevisionSelectionDialog): 15 class HgRevisionSelectionDialog(QDialog, Ui_HgRevisionSelectionDialog):
15 """ 16 """
16 Class implementing a dialog to select a revision. 17 Class implementing a dialog to select a revision.
17 """ 18 """
18 def __init__(self, tagsList, branchesList, showNone = False, parent = None): 19 def __init__(self, tagsList, branchesList, showNone=False, parent=None):
19 """ 20 """
20 Constructor 21 Constructor
21 22
22 @param tagsList list of tags (list of strings) 23 @param tagsList list of tags (list of strings)
23 @param branchesList list of branches (list of strings) 24 @param branchesList list of branches (list of strings)
37 38
38 def getRevision(self): 39 def getRevision(self):
39 """ 40 """
40 Public method to retrieve the selected revision. 41 Public method to retrieve the selected revision.
41 42
42 @return tuple naming the revision and a flag indicating a 43 @return tuple naming the revision and a flag indicating a
43 forced merge (string, boolean) 44 forced merge (string, boolean)
44 """ 45 """
45 if self.numberButton.isChecked(): 46 if self.numberButton.isChecked():
46 rev = str(self.numberSpinBox.value()) 47 rev = str(self.numberSpinBox.value())
47 elif self.idButton.isChecked(): 48 elif self.idButton.isChecked():

eric ide

mercurial