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