Plugins/VcsPlugins/vcsSubversion/ProjectHelper.py

changeset 454
d28d558f7484
parent 453
a81097a85889
child 791
9ec2ac20e54e
equal deleted inserted replaced
453:a81097a85889 454:d28d558f7484
55 )) 55 ))
56 self.vcsNewAct.setWhatsThis(self.trUtf8( 56 self.vcsNewAct.setWhatsThis(self.trUtf8(
57 """<b>New from repository</b>""" 57 """<b>New from repository</b>"""
58 """<p>This creates a new local project from the VCS repository.</p>""" 58 """<p>This creates a new local project from the VCS repository.</p>"""
59 )) 59 ))
60 self.vcsNewAct.triggered.connect(self._vcsCheckout) 60 self.vcsNewAct.triggered[()].connect(self._vcsCheckout)
61 self.actions.append(self.vcsNewAct) 61 self.actions.append(self.vcsNewAct)
62 62
63 self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'), 63 self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'),
64 UI.PixmapCache.getIcon("vcsUpdate.png"), 64 UI.PixmapCache.getIcon("vcsUpdate.png"),
65 self.trUtf8('&Update from repository'), 0, 0, self, 65 self.trUtf8('&Update from repository'), 0, 0, self,
69 )) 69 ))
70 self.vcsUpdateAct.setWhatsThis(self.trUtf8( 70 self.vcsUpdateAct.setWhatsThis(self.trUtf8(
71 """<b>Update from repository</b>""" 71 """<b>Update from repository</b>"""
72 """<p>This updates the local project from the VCS repository.</p>""" 72 """<p>This updates the local project from the VCS repository.</p>"""
73 )) 73 ))
74 self.vcsUpdateAct.triggered.connect(self._vcsUpdate) 74 self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate)
75 self.actions.append(self.vcsUpdateAct) 75 self.actions.append(self.vcsUpdateAct)
76 76
77 self.vcsCommitAct = E5Action(self.trUtf8('Commit changes to repository'), 77 self.vcsCommitAct = E5Action(self.trUtf8('Commit changes to repository'),
78 UI.PixmapCache.getIcon("vcsCommit.png"), 78 UI.PixmapCache.getIcon("vcsCommit.png"),
79 self.trUtf8('&Commit changes to repository...'), 0, 0, self, 79 self.trUtf8('&Commit changes to repository...'), 0, 0, self,
83 )) 83 ))
84 self.vcsCommitAct.setWhatsThis(self.trUtf8( 84 self.vcsCommitAct.setWhatsThis(self.trUtf8(
85 """<b>Commit changes to repository</b>""" 85 """<b>Commit changes to repository</b>"""
86 """<p>This commits changes to the local project to the VCS repository.</p>""" 86 """<p>This commits changes to the local project to the VCS repository.</p>"""
87 )) 87 ))
88 self.vcsCommitAct.triggered.connect(self._vcsCommit) 88 self.vcsCommitAct.triggered[()].connect(self._vcsCommit)
89 self.actions.append(self.vcsCommitAct) 89 self.actions.append(self.vcsCommitAct)
90 90
91 self.vcsAddAct = E5Action(self.trUtf8('Add to repository'), 91 self.vcsAddAct = E5Action(self.trUtf8('Add to repository'),
92 UI.PixmapCache.getIcon("vcsAdd.png"), 92 UI.PixmapCache.getIcon("vcsAdd.png"),
93 self.trUtf8('&Add to repository...'), 0, 0, self, 'subversion_add') 93 self.trUtf8('&Add to repository...'), 0, 0, self, 'subversion_add')
96 )) 96 ))
97 self.vcsAddAct.setWhatsThis(self.trUtf8( 97 self.vcsAddAct.setWhatsThis(self.trUtf8(
98 """<b>Add to repository</b>""" 98 """<b>Add to repository</b>"""
99 """<p>This adds (imports) the local project to the VCS repository.</p>""" 99 """<p>This adds (imports) the local project to the VCS repository.</p>"""
100 )) 100 ))
101 self.vcsAddAct.triggered.connect(self._vcsImport) 101 self.vcsAddAct.triggered[()].connect(self._vcsImport)
102 self.actions.append(self.vcsAddAct) 102 self.actions.append(self.vcsAddAct)
103 103
104 self.vcsRemoveAct = E5Action(self.trUtf8('Remove from repository (and disk)'), 104 self.vcsRemoveAct = E5Action(self.trUtf8('Remove from repository (and disk)'),
105 UI.PixmapCache.getIcon("vcsRemove.png"), 105 UI.PixmapCache.getIcon("vcsRemove.png"),
106 self.trUtf8('&Remove from repository (and disk)'), 106 self.trUtf8('&Remove from repository (and disk)'),
111 self.vcsRemoveAct.setWhatsThis(self.trUtf8( 111 self.vcsRemoveAct.setWhatsThis(self.trUtf8(
112 """<b>Remove from repository</b>""" 112 """<b>Remove from repository</b>"""
113 """<p>This removes the local project from the VCS repository""" 113 """<p>This removes the local project from the VCS repository"""
114 """ (and disk).</p>""" 114 """ (and disk).</p>"""
115 )) 115 ))
116 self.vcsRemoveAct.triggered.connect(self._vcsRemove) 116 self.vcsRemoveAct.triggered[()].connect(self._vcsRemove)
117 self.actions.append(self.vcsRemoveAct) 117 self.actions.append(self.vcsRemoveAct)
118 118
119 self.vcsLogAct = E5Action(self.trUtf8('Show log'), 119 self.vcsLogAct = E5Action(self.trUtf8('Show log'),
120 UI.PixmapCache.getIcon("vcsLog.png"), 120 UI.PixmapCache.getIcon("vcsLog.png"),
121 self.trUtf8('Show &log'), 121 self.trUtf8('Show &log'),
125 )) 125 ))
126 self.vcsLogAct.setWhatsThis(self.trUtf8( 126 self.vcsLogAct.setWhatsThis(self.trUtf8(
127 """<b>Show log</b>""" 127 """<b>Show log</b>"""
128 """<p>This shows the log of the local project.</p>""" 128 """<p>This shows the log of the local project.</p>"""
129 )) 129 ))
130 self.vcsLogAct.triggered.connect(self._vcsLog) 130 self.vcsLogAct.triggered[()].connect(self._vcsLog)
131 self.actions.append(self.vcsLogAct) 131 self.actions.append(self.vcsLogAct)
132 132
133 self.svnLogLimitedAct = E5Action(self.trUtf8('Show limited log'), 133 self.svnLogLimitedAct = E5Action(self.trUtf8('Show limited log'),
134 UI.PixmapCache.getIcon("vcsLog.png"), 134 UI.PixmapCache.getIcon("vcsLog.png"),
135 self.trUtf8('Show limited log'), 135 self.trUtf8('Show limited log'),
140 self.svnLogLimitedAct.setWhatsThis(self.trUtf8( 140 self.svnLogLimitedAct.setWhatsThis(self.trUtf8(
141 """<b>Show limited log</b>""" 141 """<b>Show limited log</b>"""
142 """<p>This shows the log of the local project limited to a selectable""" 142 """<p>This shows the log of the local project limited to a selectable"""
143 """ number of entries.</p>""" 143 """ number of entries.</p>"""
144 )) 144 ))
145 self.svnLogLimitedAct.triggered.connect(self.__svnLogLimited) 145 self.svnLogLimitedAct.triggered[()].connect(self.__svnLogLimited)
146 self.actions.append(self.svnLogLimitedAct) 146 self.actions.append(self.svnLogLimitedAct)
147 147
148 self.svnLogBrowserAct = E5Action(self.trUtf8('Show log browser'), 148 self.svnLogBrowserAct = E5Action(self.trUtf8('Show log browser'),
149 UI.PixmapCache.getIcon("vcsLog.png"), 149 UI.PixmapCache.getIcon("vcsLog.png"),
150 self.trUtf8('Show log browser'), 150 self.trUtf8('Show log browser'),
156 """<b>Show log browser</b>""" 156 """<b>Show log browser</b>"""
157 """<p>This shows a dialog to browse the log of the local project.""" 157 """<p>This shows a dialog to browse the log of the local project."""
158 """ A limited number of entries is shown first. More can be""" 158 """ A limited number of entries is shown first. More can be"""
159 """ retrieved later on.</p>""" 159 """ retrieved later on.</p>"""
160 )) 160 ))
161 self.svnLogBrowserAct.triggered.connect(self.__svnLogBrowser) 161 self.svnLogBrowserAct.triggered[()].connect(self.__svnLogBrowser)
162 self.actions.append(self.svnLogBrowserAct) 162 self.actions.append(self.svnLogBrowserAct)
163 163
164 self.vcsDiffAct = E5Action(self.trUtf8('Show difference'), 164 self.vcsDiffAct = E5Action(self.trUtf8('Show difference'),
165 UI.PixmapCache.getIcon("vcsDiff.png"), 165 UI.PixmapCache.getIcon("vcsDiff.png"),
166 self.trUtf8('Show &difference'), 166 self.trUtf8('Show &difference'),
170 )) 170 ))
171 self.vcsDiffAct.setWhatsThis(self.trUtf8( 171 self.vcsDiffAct.setWhatsThis(self.trUtf8(
172 """<b>Show difference</b>""" 172 """<b>Show difference</b>"""
173 """<p>This shows the difference of the local project to the repository.</p>""" 173 """<p>This shows the difference of the local project to the repository.</p>"""
174 )) 174 ))
175 self.vcsDiffAct.triggered.connect(self._vcsDiff) 175 self.vcsDiffAct.triggered[()].connect(self._vcsDiff)
176 self.actions.append(self.vcsDiffAct) 176 self.actions.append(self.vcsDiffAct)
177 177
178 self.svnExtDiffAct = E5Action(self.trUtf8('Show difference (extended)'), 178 self.svnExtDiffAct = E5Action(self.trUtf8('Show difference (extended)'),
179 UI.PixmapCache.getIcon("vcsDiff.png"), 179 UI.PixmapCache.getIcon("vcsDiff.png"),
180 self.trUtf8('Show difference (extended)'), 180 self.trUtf8('Show difference (extended)'),
184 )) 184 ))
185 self.svnExtDiffAct.setWhatsThis(self.trUtf8( 185 self.svnExtDiffAct.setWhatsThis(self.trUtf8(
186 """<b>Show difference (extended)</b>""" 186 """<b>Show difference (extended)</b>"""
187 """<p>This shows the difference of selectable revisions of the project.</p>""" 187 """<p>This shows the difference of selectable revisions of the project.</p>"""
188 )) 188 ))
189 self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff) 189 self.svnExtDiffAct.triggered[()].connect(self.__svnExtendedDiff)
190 self.actions.append(self.svnExtDiffAct) 190 self.actions.append(self.svnExtDiffAct)
191 191
192 self.svnUrlDiffAct = E5Action(self.trUtf8('Show difference (URLs)'), 192 self.svnUrlDiffAct = E5Action(self.trUtf8('Show difference (URLs)'),
193 UI.PixmapCache.getIcon("vcsDiff.png"), 193 UI.PixmapCache.getIcon("vcsDiff.png"),
194 self.trUtf8('Show difference (URLs)'), 194 self.trUtf8('Show difference (URLs)'),
199 self.svnUrlDiffAct.setWhatsThis(self.trUtf8( 199 self.svnUrlDiffAct.setWhatsThis(self.trUtf8(
200 """<b>Show difference (URLs)</b>""" 200 """<b>Show difference (URLs)</b>"""
201 """<p>This shows the difference of the project between""" 201 """<p>This shows the difference of the project between"""
202 """ two repository URLs.</p>""" 202 """ two repository URLs.</p>"""
203 )) 203 ))
204 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff) 204 self.svnUrlDiffAct.triggered[()].connect(self.__svnUrlDiff)
205 self.actions.append(self.svnUrlDiffAct) 205 self.actions.append(self.svnUrlDiffAct)
206 206
207 self.vcsStatusAct = E5Action(self.trUtf8('Show status'), 207 self.vcsStatusAct = E5Action(self.trUtf8('Show status'),
208 UI.PixmapCache.getIcon("vcsStatus.png"), 208 UI.PixmapCache.getIcon("vcsStatus.png"),
209 self.trUtf8('Show &status'), 209 self.trUtf8('Show &status'),
213 )) 213 ))
214 self.vcsStatusAct.setWhatsThis(self.trUtf8( 214 self.vcsStatusAct.setWhatsThis(self.trUtf8(
215 """<b>Show status</b>""" 215 """<b>Show status</b>"""
216 """<p>This shows the status of the local project.</p>""" 216 """<p>This shows the status of the local project.</p>"""
217 )) 217 ))
218 self.vcsStatusAct.triggered.connect(self._vcsStatus) 218 self.vcsStatusAct.triggered[()].connect(self._vcsStatus)
219 self.actions.append(self.vcsStatusAct) 219 self.actions.append(self.vcsStatusAct)
220 220
221 self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'), 221 self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'),
222 UI.PixmapCache.getIcon("vcsTag.png"), 222 UI.PixmapCache.getIcon("vcsTag.png"),
223 self.trUtf8('&Tag in repository...'), 223 self.trUtf8('&Tag in repository...'),
227 )) 227 ))
228 self.vcsTagAct.setWhatsThis(self.trUtf8( 228 self.vcsTagAct.setWhatsThis(self.trUtf8(
229 """<b>Tag in repository</b>""" 229 """<b>Tag in repository</b>"""
230 """<p>This tags the local project in the repository.</p>""" 230 """<p>This tags the local project in the repository.</p>"""
231 )) 231 ))
232 self.vcsTagAct.triggered.connect(self._vcsTag) 232 self.vcsTagAct.triggered[()].connect(self._vcsTag)
233 self.actions.append(self.vcsTagAct) 233 self.actions.append(self.vcsTagAct)
234 234
235 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), 235 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'),
236 UI.PixmapCache.getIcon("vcsExport.png"), 236 UI.PixmapCache.getIcon("vcsExport.png"),
237 self.trUtf8('&Export from repository...'), 237 self.trUtf8('&Export from repository...'),
241 )) 241 ))
242 self.vcsExportAct.setWhatsThis(self.trUtf8( 242 self.vcsExportAct.setWhatsThis(self.trUtf8(
243 """<b>Export from repository</b>""" 243 """<b>Export from repository</b>"""
244 """<p>This exports a project from the repository.</p>""" 244 """<p>This exports a project from the repository.</p>"""
245 )) 245 ))
246 self.vcsExportAct.triggered.connect(self._vcsExport) 246 self.vcsExportAct.triggered[()].connect(self._vcsExport)
247 self.actions.append(self.vcsExportAct) 247 self.actions.append(self.vcsExportAct)
248 248
249 self.vcsPropsAct = E5Action(self.trUtf8('Command options'), 249 self.vcsPropsAct = E5Action(self.trUtf8('Command options'),
250 self.trUtf8('Command &options...'),0,0,self, 250 self.trUtf8('Command &options...'),0,0,self,
251 'subversion_options') 251 'subversion_options')
252 self.vcsPropsAct.setStatusTip(self.trUtf8('Show the VCS command options')) 252 self.vcsPropsAct.setStatusTip(self.trUtf8('Show the VCS command options'))
253 self.vcsPropsAct.setWhatsThis(self.trUtf8( 253 self.vcsPropsAct.setWhatsThis(self.trUtf8(
254 """<b>Command options...</b>""" 254 """<b>Command options...</b>"""
255 """<p>This shows a dialog to edit the VCS command options.</p>""" 255 """<p>This shows a dialog to edit the VCS command options.</p>"""
256 )) 256 ))
257 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions) 257 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions)
258 self.actions.append(self.vcsPropsAct) 258 self.actions.append(self.vcsPropsAct)
259 259
260 self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'), 260 self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'),
261 UI.PixmapCache.getIcon("vcsRevert.png"), 261 UI.PixmapCache.getIcon("vcsRevert.png"),
262 self.trUtf8('Re&vert changes'), 262 self.trUtf8('Re&vert changes'),
266 )) 266 ))
267 self.vcsRevertAct.setWhatsThis(self.trUtf8( 267 self.vcsRevertAct.setWhatsThis(self.trUtf8(
268 """<b>Revert changes</b>""" 268 """<b>Revert changes</b>"""
269 """<p>This reverts all changes made to the local project.</p>""" 269 """<p>This reverts all changes made to the local project.</p>"""
270 )) 270 ))
271 self.vcsRevertAct.triggered.connect(self._vcsRevert) 271 self.vcsRevertAct.triggered[()].connect(self._vcsRevert)
272 self.actions.append(self.vcsRevertAct) 272 self.actions.append(self.vcsRevertAct)
273 273
274 self.vcsMergeAct = E5Action(self.trUtf8('Merge'), 274 self.vcsMergeAct = E5Action(self.trUtf8('Merge'),
275 UI.PixmapCache.getIcon("vcsMerge.png"), 275 UI.PixmapCache.getIcon("vcsMerge.png"),
276 self.trUtf8('Mer&ge changes...'), 276 self.trUtf8('Mer&ge changes...'),
280 )) 280 ))
281 self.vcsMergeAct.setWhatsThis(self.trUtf8( 281 self.vcsMergeAct.setWhatsThis(self.trUtf8(
282 """<b>Merge</b>""" 282 """<b>Merge</b>"""
283 """<p>This merges changes of a tag/revision into the local project.</p>""" 283 """<p>This merges changes of a tag/revision into the local project.</p>"""
284 )) 284 ))
285 self.vcsMergeAct.triggered.connect(self._vcsMerge) 285 self.vcsMergeAct.triggered[()].connect(self._vcsMerge)
286 self.actions.append(self.vcsMergeAct) 286 self.actions.append(self.vcsMergeAct)
287 287
288 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'), 288 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'),
289 UI.PixmapCache.getIcon("vcsSwitch.png"), 289 UI.PixmapCache.getIcon("vcsSwitch.png"),
290 self.trUtf8('S&witch...'), 290 self.trUtf8('S&witch...'),
294 )) 294 ))
295 self.vcsSwitchAct.setWhatsThis(self.trUtf8( 295 self.vcsSwitchAct.setWhatsThis(self.trUtf8(
296 """<b>Switch</b>""" 296 """<b>Switch</b>"""
297 """<p>This switches the local copy to another tag/branch.</p>""" 297 """<p>This switches the local copy to another tag/branch.</p>"""
298 )) 298 ))
299 self.vcsSwitchAct.triggered.connect(self._vcsSwitch) 299 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch)
300 self.actions.append(self.vcsSwitchAct) 300 self.actions.append(self.vcsSwitchAct)
301 301
302 self.vcsResolveAct = E5Action(self.trUtf8('Resolve conflicts'), 302 self.vcsResolveAct = E5Action(self.trUtf8('Resolve conflicts'),
303 self.trUtf8('Resolve con&flicts'), 303 self.trUtf8('Resolve con&flicts'),
304 0, 0, self, 'subversion_resolve') 304 0, 0, self, 'subversion_resolve')
307 )) 307 ))
308 self.vcsResolveAct.setWhatsThis(self.trUtf8( 308 self.vcsResolveAct.setWhatsThis(self.trUtf8(
309 """<b>Resolve conflicts</b>""" 309 """<b>Resolve conflicts</b>"""
310 """<p>This resolves all conflicts of the local project.</p>""" 310 """<p>This resolves all conflicts of the local project.</p>"""
311 )) 311 ))
312 self.vcsResolveAct.triggered.connect(self.__svnResolve) 312 self.vcsResolveAct.triggered[()].connect(self.__svnResolve)
313 self.actions.append(self.vcsResolveAct) 313 self.actions.append(self.vcsResolveAct)
314 314
315 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'), 315 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'),
316 self.trUtf8('Cleanu&p'), 316 self.trUtf8('Cleanu&p'),
317 0, 0, self, 'subversion_cleanup') 317 0, 0, self, 'subversion_cleanup')
320 )) 320 ))
321 self.vcsCleanupAct.setWhatsThis(self.trUtf8( 321 self.vcsCleanupAct.setWhatsThis(self.trUtf8(
322 """<b>Cleanup</b>""" 322 """<b>Cleanup</b>"""
323 """<p>This performs a cleanup of the local project.</p>""" 323 """<p>This performs a cleanup of the local project.</p>"""
324 )) 324 ))
325 self.vcsCleanupAct.triggered.connect(self._vcsCleanup) 325 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup)
326 self.actions.append(self.vcsCleanupAct) 326 self.actions.append(self.vcsCleanupAct)
327 327
328 self.vcsCommandAct = E5Action(self.trUtf8('Execute command'), 328 self.vcsCommandAct = E5Action(self.trUtf8('Execute command'),
329 self.trUtf8('E&xecute command...'), 329 self.trUtf8('E&xecute command...'),
330 0, 0, self, 'subversion_command') 330 0, 0, self, 'subversion_command')
333 )) 333 ))
334 self.vcsCommandAct.setWhatsThis(self.trUtf8( 334 self.vcsCommandAct.setWhatsThis(self.trUtf8(
335 """<b>Execute command</b>""" 335 """<b>Execute command</b>"""
336 """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" 336 """<p>This opens a dialog to enter an arbitrary VCS command.</p>"""
337 )) 337 ))
338 self.vcsCommandAct.triggered.connect(self._vcsCommand) 338 self.vcsCommandAct.triggered[()].connect(self._vcsCommand)
339 self.actions.append(self.vcsCommandAct) 339 self.actions.append(self.vcsCommandAct)
340 340
341 self.svnTagListAct = E5Action(self.trUtf8('List tags'), 341 self.svnTagListAct = E5Action(self.trUtf8('List tags'),
342 self.trUtf8('List tags...'), 342 self.trUtf8('List tags...'),
343 0, 0, self, 'subversion_list_tags') 343 0, 0, self, 'subversion_list_tags')
346 )) 346 ))
347 self.svnTagListAct.setWhatsThis(self.trUtf8( 347 self.svnTagListAct.setWhatsThis(self.trUtf8(
348 """<b>List tags</b>""" 348 """<b>List tags</b>"""
349 """<p>This lists the tags of the project.</p>""" 349 """<p>This lists the tags of the project.</p>"""
350 )) 350 ))
351 self.svnTagListAct.triggered.connect(self.__svnTagList) 351 self.svnTagListAct.triggered[()].connect(self.__svnTagList)
352 self.actions.append(self.svnTagListAct) 352 self.actions.append(self.svnTagListAct)
353 353
354 self.svnBranchListAct = E5Action(self.trUtf8('List branches'), 354 self.svnBranchListAct = E5Action(self.trUtf8('List branches'),
355 self.trUtf8('List branches...'), 355 self.trUtf8('List branches...'),
356 0, 0, self, 'subversion_list_branches') 356 0, 0, self, 'subversion_list_branches')
359 )) 359 ))
360 self.svnBranchListAct.setWhatsThis(self.trUtf8( 360 self.svnBranchListAct.setWhatsThis(self.trUtf8(
361 """<b>List branches</b>""" 361 """<b>List branches</b>"""
362 """<p>This lists the branches of the project.</p>""" 362 """<p>This lists the branches of the project.</p>"""
363 )) 363 ))
364 self.svnBranchListAct.triggered.connect(self.__svnBranchList) 364 self.svnBranchListAct.triggered[()].connect(self.__svnBranchList)
365 self.actions.append(self.svnBranchListAct) 365 self.actions.append(self.svnBranchListAct)
366 366
367 self.svnListAct = E5Action(self.trUtf8('List repository contents'), 367 self.svnListAct = E5Action(self.trUtf8('List repository contents'),
368 self.trUtf8('List repository contents...'), 368 self.trUtf8('List repository contents...'),
369 0, 0, self, 'subversion_contents') 369 0, 0, self, 'subversion_contents')
372 )) 372 ))
373 self.svnListAct.setWhatsThis(self.trUtf8( 373 self.svnListAct.setWhatsThis(self.trUtf8(
374 """<b>List repository contents</b>""" 374 """<b>List repository contents</b>"""
375 """<p>This lists the contents of the repository.</p>""" 375 """<p>This lists the contents of the repository.</p>"""
376 )) 376 ))
377 self.svnListAct.triggered.connect(self.__svnTagList) 377 self.svnListAct.triggered[()].connect(self.__svnTagList)
378 self.actions.append(self.svnListAct) 378 self.actions.append(self.svnListAct)
379 379
380 self.svnPropSetAct = E5Action(self.trUtf8('Set Property'), 380 self.svnPropSetAct = E5Action(self.trUtf8('Set Property'),
381 self.trUtf8('Set Property...'), 381 self.trUtf8('Set Property...'),
382 0, 0, self, 'subversion_property_set') 382 0, 0, self, 'subversion_property_set')
385 )) 385 ))
386 self.svnPropSetAct.setWhatsThis(self.trUtf8( 386 self.svnPropSetAct.setWhatsThis(self.trUtf8(
387 """<b>Set Property</b>""" 387 """<b>Set Property</b>"""
388 """<p>This sets a property for the project files.</p>""" 388 """<p>This sets a property for the project files.</p>"""
389 )) 389 ))
390 self.svnPropSetAct.triggered.connect(self.__svnPropSet) 390 self.svnPropSetAct.triggered[()].connect(self.__svnPropSet)
391 self.actions.append(self.svnPropSetAct) 391 self.actions.append(self.svnPropSetAct)
392 392
393 self.svnPropListAct = E5Action(self.trUtf8('List Properties'), 393 self.svnPropListAct = E5Action(self.trUtf8('List Properties'),
394 self.trUtf8('List Properties...'), 394 self.trUtf8('List Properties...'),
395 0, 0, self, 'subversion_property_list') 395 0, 0, self, 'subversion_property_list')
398 )) 398 ))
399 self.svnPropListAct.setWhatsThis(self.trUtf8( 399 self.svnPropListAct.setWhatsThis(self.trUtf8(
400 """<b>List Properties</b>""" 400 """<b>List Properties</b>"""
401 """<p>This lists the properties of the project files.</p>""" 401 """<p>This lists the properties of the project files.</p>"""
402 )) 402 ))
403 self.svnPropListAct.triggered.connect(self.__svnPropList) 403 self.svnPropListAct.triggered[()].connect(self.__svnPropList)
404 self.actions.append(self.svnPropListAct) 404 self.actions.append(self.svnPropListAct)
405 405
406 self.svnPropDelAct = E5Action(self.trUtf8('Delete Property'), 406 self.svnPropDelAct = E5Action(self.trUtf8('Delete Property'),
407 self.trUtf8('Delete Property...'), 407 self.trUtf8('Delete Property...'),
408 0, 0, self, 'subversion_property_delete') 408 0, 0, self, 'subversion_property_delete')
411 )) 411 ))
412 self.svnPropDelAct.setWhatsThis(self.trUtf8( 412 self.svnPropDelAct.setWhatsThis(self.trUtf8(
413 """<b>Delete Property</b>""" 413 """<b>Delete Property</b>"""
414 """<p>This deletes a property for the project files.</p>""" 414 """<p>This deletes a property for the project files.</p>"""
415 )) 415 ))
416 self.svnPropDelAct.triggered.connect(self.__svnPropDel) 416 self.svnPropDelAct.triggered[()].connect(self.__svnPropDel)
417 self.actions.append(self.svnPropDelAct) 417 self.actions.append(self.svnPropDelAct)
418 418
419 self.svnRelocateAct = E5Action(self.trUtf8('Relocate'), 419 self.svnRelocateAct = E5Action(self.trUtf8('Relocate'),
420 UI.PixmapCache.getIcon("vcsSwitch.png"), 420 UI.PixmapCache.getIcon("vcsSwitch.png"),
421 self.trUtf8('Relocate...'), 421 self.trUtf8('Relocate...'),
425 )) 425 ))
426 self.svnRelocateAct.setWhatsThis(self.trUtf8( 426 self.svnRelocateAct.setWhatsThis(self.trUtf8(
427 """<b>Relocate</b>""" 427 """<b>Relocate</b>"""
428 """<p>This relocates the working copy to a new repository URL.</p>""" 428 """<p>This relocates the working copy to a new repository URL.</p>"""
429 )) 429 ))
430 self.svnRelocateAct.triggered.connect(self.__svnRelocate) 430 self.svnRelocateAct.triggered[()].connect(self.__svnRelocate)
431 self.actions.append(self.svnRelocateAct) 431 self.actions.append(self.svnRelocateAct)
432 432
433 self.svnRepoBrowserAct = E5Action(self.trUtf8('Repository Browser'), 433 self.svnRepoBrowserAct = E5Action(self.trUtf8('Repository Browser'),
434 UI.PixmapCache.getIcon("vcsRepoBrowser.png"), 434 UI.PixmapCache.getIcon("vcsRepoBrowser.png"),
435 self.trUtf8('Repository Browser...'), 435 self.trUtf8('Repository Browser...'),
439 )) 439 ))
440 self.svnRepoBrowserAct.setWhatsThis(self.trUtf8( 440 self.svnRepoBrowserAct.setWhatsThis(self.trUtf8(
441 """<b>Repository Browser</b>""" 441 """<b>Repository Browser</b>"""
442 """<p>This shows the Repository Browser dialog.</p>""" 442 """<p>This shows the Repository Browser dialog.</p>"""
443 )) 443 ))
444 self.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser) 444 self.svnRepoBrowserAct.triggered[()].connect(self.__svnRepoBrowser)
445 self.actions.append(self.svnRepoBrowserAct) 445 self.actions.append(self.svnRepoBrowserAct)
446 446
447 self.svnConfigAct = E5Action(self.trUtf8('Configure'), 447 self.svnConfigAct = E5Action(self.trUtf8('Configure'),
448 self.trUtf8('Configure...'), 448 self.trUtf8('Configure...'),
449 0, 0, self, 'subversion_configure') 449 0, 0, self, 'subversion_configure')
452 )) 452 ))
453 self.svnConfigAct.setWhatsThis(self.trUtf8( 453 self.svnConfigAct.setWhatsThis(self.trUtf8(
454 """<b>Configure</b>""" 454 """<b>Configure</b>"""
455 """<p>Show the configuration dialog with the Subversion page selected.</p>""" 455 """<p>Show the configuration dialog with the Subversion page selected.</p>"""
456 )) 456 ))
457 self.svnConfigAct.triggered.connect(self.__svnConfigure) 457 self.svnConfigAct.triggered[()].connect(self.__svnConfigure)
458 self.actions.append(self.svnConfigAct) 458 self.actions.append(self.svnConfigAct)
459 459
460 def initMenu(self, menu): 460 def initMenu(self, menu):
461 """ 461 """
462 Public method to generate the VCS menu. 462 Public method to generate the VCS menu.

eric ide

mercurial