27 def __init__(self, vcs, tagsList, branchesList, path, parent=None): |
27 def __init__(self, vcs, tagsList, branchesList, path, parent=None): |
28 """ |
28 """ |
29 Constructor |
29 Constructor |
30 |
30 |
31 @param vcs reference to the vcs object |
31 @param vcs reference to the vcs object |
32 @param tagsList list of tags (list of strings) |
32 @type Subversion |
33 @param branchesList list of branches (list of strings) |
33 @param tagsList list of tags |
34 @param path pathname to determine the repository URL from (string) |
34 @type list of str |
35 @param parent parent widget of the dialog (QWidget) |
35 @param branchesList list of branches |
|
36 @type list of str |
|
37 @param path pathname to determine the repository URL from |
|
38 @type str |
|
39 @param parent parent widget of the dialog |
|
40 @type QWidget |
36 """ |
41 """ |
37 super().__init__(parent) |
42 super().__init__(parent) |
38 self.setupUi(self) |
43 self.setupUi(self) |
39 |
44 |
40 if vcs.version < (1, 4, 0): |
45 if vcs.version < (1, 4, 0): |
104 def __changeLabelCombo(self, labelCombo, type_): |
109 def __changeLabelCombo(self, labelCombo, type_): |
105 """ |
110 """ |
106 Private method used to change the label combo depending on the |
111 Private method used to change the label combo depending on the |
107 selected type. |
112 selected type. |
108 |
113 |
109 @param labelCombo reference to the labelCombo object (QComboBox) |
114 @param labelCombo reference to the labelCombo object |
110 @param type_ type string (string) |
115 @type QComboBox |
|
116 @param type_ type string |
|
117 @type str |
111 """ |
118 """ |
112 if type_ == "trunk/": |
119 if type_ == "trunk/": |
113 labelCombo.clear() |
120 labelCombo.clear() |
114 labelCombo.setEditText("") |
121 labelCombo.setEditText("") |
115 labelCombo.setEnabled(False) |
122 labelCombo.setEnabled(False) |
148 |
155 |
149 def getURLs(self): |
156 def getURLs(self): |
150 """ |
157 """ |
151 Public method to get the entered URLs. |
158 Public method to get the entered URLs. |
152 |
159 |
153 @return tuple of list of two URL strings (list of strings) and |
160 @return tuple containing a list of two URL strings and a flag indicating |
154 a flag indicating a diff summary (boolean) |
161 a diff summary |
|
162 @rtype tuple of (list of str, bool) |
155 """ |
163 """ |
156 if self.vcs.otherData["standardLayout"]: |
164 if self.vcs.otherData["standardLayout"]: |
157 url1 = ( |
165 url1 = ( |
158 self.repoRootLabel1.text() |
166 self.repoRootLabel1.text() |
159 + self.typeCombo1.currentText() |
167 + self.typeCombo1.currentText() |