Plugins/VcsPlugins/vcsSubversion/ProjectHelper.py

changeset 3345
071afe8be2a1
parent 3190
a9a94491c4fd
child 3349
2a034a7f1f54
equal deleted inserted replaced
3343:f7a6d271bb40 3345:071afe8be2a1
56 self.vcsNewAct.setWhatsThis(self.tr( 56 self.vcsNewAct.setWhatsThis(self.tr(
57 """<b>New from repository</b>""" 57 """<b>New from repository</b>"""
58 """<p>This creates a new local project from the VCS""" 58 """<p>This creates a new local project from the VCS"""
59 """ repository.</p>""" 59 """ repository.</p>"""
60 )) 60 ))
61 self.vcsNewAct.triggered[()].connect(self._vcsCheckout) 61 self.vcsNewAct.triggered.connect(self._vcsCheckout)
62 self.actions.append(self.vcsNewAct) 62 self.actions.append(self.vcsNewAct)
63 63
64 self.vcsUpdateAct = E5Action( 64 self.vcsUpdateAct = E5Action(
65 self.tr('Update from repository'), 65 self.tr('Update from repository'),
66 UI.PixmapCache.getIcon("vcsUpdate.png"), 66 UI.PixmapCache.getIcon("vcsUpdate.png"),
72 self.vcsUpdateAct.setWhatsThis(self.tr( 72 self.vcsUpdateAct.setWhatsThis(self.tr(
73 """<b>Update from repository</b>""" 73 """<b>Update from repository</b>"""
74 """<p>This updates the local project from the VCS""" 74 """<p>This updates the local project from the VCS"""
75 """ repository.</p>""" 75 """ repository.</p>"""
76 )) 76 ))
77 self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate) 77 self.vcsUpdateAct.triggered.connect(self._vcsUpdate)
78 self.actions.append(self.vcsUpdateAct) 78 self.actions.append(self.vcsUpdateAct)
79 79
80 self.vcsCommitAct = E5Action( 80 self.vcsCommitAct = E5Action(
81 self.tr('Commit changes to repository'), 81 self.tr('Commit changes to repository'),
82 UI.PixmapCache.getIcon("vcsCommit.png"), 82 UI.PixmapCache.getIcon("vcsCommit.png"),
88 self.vcsCommitAct.setWhatsThis(self.tr( 88 self.vcsCommitAct.setWhatsThis(self.tr(
89 """<b>Commit changes to repository</b>""" 89 """<b>Commit changes to repository</b>"""
90 """<p>This commits changes to the local project to the VCS""" 90 """<p>This commits changes to the local project to the VCS"""
91 """ repository.</p>""" 91 """ repository.</p>"""
92 )) 92 ))
93 self.vcsCommitAct.triggered[()].connect(self._vcsCommit) 93 self.vcsCommitAct.triggered.connect(self._vcsCommit)
94 self.actions.append(self.vcsCommitAct) 94 self.actions.append(self.vcsCommitAct)
95 95
96 self.vcsLogAct = E5Action( 96 self.vcsLogAct = E5Action(
97 self.tr('Show log'), 97 self.tr('Show log'),
98 UI.PixmapCache.getIcon("vcsLog.png"), 98 UI.PixmapCache.getIcon("vcsLog.png"),
103 )) 103 ))
104 self.vcsLogAct.setWhatsThis(self.tr( 104 self.vcsLogAct.setWhatsThis(self.tr(
105 """<b>Show log</b>""" 105 """<b>Show log</b>"""
106 """<p>This shows the log of the local project.</p>""" 106 """<p>This shows the log of the local project.</p>"""
107 )) 107 ))
108 self.vcsLogAct.triggered[()].connect(self._vcsLog) 108 self.vcsLogAct.triggered.connect(self._vcsLog)
109 self.actions.append(self.vcsLogAct) 109 self.actions.append(self.vcsLogAct)
110 110
111 self.svnLogBrowserAct = E5Action( 111 self.svnLogBrowserAct = E5Action(
112 self.tr('Show log browser'), 112 self.tr('Show log browser'),
113 UI.PixmapCache.getIcon("vcsLog.png"), 113 UI.PixmapCache.getIcon("vcsLog.png"),
120 """<b>Show log browser</b>""" 120 """<b>Show log browser</b>"""
121 """<p>This shows a dialog to browse the log of the local""" 121 """<p>This shows a dialog to browse the log of the local"""
122 """ project. A limited number of entries is shown first. More""" 122 """ project. A limited number of entries is shown first. More"""
123 """ can be retrieved later on.</p>""" 123 """ can be retrieved later on.</p>"""
124 )) 124 ))
125 self.svnLogBrowserAct.triggered[()].connect(self.__svnLogBrowser) 125 self.svnLogBrowserAct.triggered.connect(self.__svnLogBrowser)
126 self.actions.append(self.svnLogBrowserAct) 126 self.actions.append(self.svnLogBrowserAct)
127 127
128 self.vcsDiffAct = E5Action( 128 self.vcsDiffAct = E5Action(
129 self.tr('Show difference'), 129 self.tr('Show difference'),
130 UI.PixmapCache.getIcon("vcsDiff.png"), 130 UI.PixmapCache.getIcon("vcsDiff.png"),
136 self.vcsDiffAct.setWhatsThis(self.tr( 136 self.vcsDiffAct.setWhatsThis(self.tr(
137 """<b>Show difference</b>""" 137 """<b>Show difference</b>"""
138 """<p>This shows the difference of the local project to the""" 138 """<p>This shows the difference of the local project to the"""
139 """ repository.</p>""" 139 """ repository.</p>"""
140 )) 140 ))
141 self.vcsDiffAct.triggered[()].connect(self._vcsDiff) 141 self.vcsDiffAct.triggered.connect(self._vcsDiff)
142 self.actions.append(self.vcsDiffAct) 142 self.actions.append(self.vcsDiffAct)
143 143
144 self.svnExtDiffAct = E5Action( 144 self.svnExtDiffAct = E5Action(
145 self.tr('Show difference (extended)'), 145 self.tr('Show difference (extended)'),
146 UI.PixmapCache.getIcon("vcsDiff.png"), 146 UI.PixmapCache.getIcon("vcsDiff.png"),
152 self.svnExtDiffAct.setWhatsThis(self.tr( 152 self.svnExtDiffAct.setWhatsThis(self.tr(
153 """<b>Show difference (extended)</b>""" 153 """<b>Show difference (extended)</b>"""
154 """<p>This shows the difference of selectable revisions of""" 154 """<p>This shows the difference of selectable revisions of"""
155 """ the project.</p>""" 155 """ the project.</p>"""
156 )) 156 ))
157 self.svnExtDiffAct.triggered[()].connect(self.__svnExtendedDiff) 157 self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff)
158 self.actions.append(self.svnExtDiffAct) 158 self.actions.append(self.svnExtDiffAct)
159 159
160 self.svnUrlDiffAct = E5Action( 160 self.svnUrlDiffAct = E5Action(
161 self.tr('Show difference (URLs)'), 161 self.tr('Show difference (URLs)'),
162 UI.PixmapCache.getIcon("vcsDiff.png"), 162 UI.PixmapCache.getIcon("vcsDiff.png"),
168 self.svnUrlDiffAct.setWhatsThis(self.tr( 168 self.svnUrlDiffAct.setWhatsThis(self.tr(
169 """<b>Show difference (URLs)</b>""" 169 """<b>Show difference (URLs)</b>"""
170 """<p>This shows the difference of the project between""" 170 """<p>This shows the difference of the project between"""
171 """ two repository URLs.</p>""" 171 """ two repository URLs.</p>"""
172 )) 172 ))
173 self.svnUrlDiffAct.triggered[()].connect(self.__svnUrlDiff) 173 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff)
174 self.actions.append(self.svnUrlDiffAct) 174 self.actions.append(self.svnUrlDiffAct)
175 175
176 self.vcsStatusAct = E5Action( 176 self.vcsStatusAct = E5Action(
177 self.tr('Show status'), 177 self.tr('Show status'),
178 UI.PixmapCache.getIcon("vcsStatus.png"), 178 UI.PixmapCache.getIcon("vcsStatus.png"),
183 )) 183 ))
184 self.vcsStatusAct.setWhatsThis(self.tr( 184 self.vcsStatusAct.setWhatsThis(self.tr(
185 """<b>Show status</b>""" 185 """<b>Show status</b>"""
186 """<p>This shows the status of the local project.</p>""" 186 """<p>This shows the status of the local project.</p>"""
187 )) 187 ))
188 self.vcsStatusAct.triggered[()].connect(self._vcsStatus) 188 self.vcsStatusAct.triggered.connect(self._vcsStatus)
189 self.actions.append(self.vcsStatusAct) 189 self.actions.append(self.vcsStatusAct)
190 190
191 self.svnChangeListsAct = E5Action( 191 self.svnChangeListsAct = E5Action(
192 self.tr('Show change lists'), 192 self.tr('Show change lists'),
193 UI.PixmapCache.getIcon("vcsChangeLists.png"), 193 UI.PixmapCache.getIcon("vcsChangeLists.png"),
199 self.svnChangeListsAct.setWhatsThis(self.tr( 199 self.svnChangeListsAct.setWhatsThis(self.tr(
200 """<b>Show change lists</b>""" 200 """<b>Show change lists</b>"""
201 """<p>This shows the change lists and associated files of the""" 201 """<p>This shows the change lists and associated files of the"""
202 """ local project.</p>""" 202 """ local project.</p>"""
203 )) 203 ))
204 self.svnChangeListsAct.triggered[()].connect(self.__svnChangeLists) 204 self.svnChangeListsAct.triggered.connect(self.__svnChangeLists)
205 self.actions.append(self.svnChangeListsAct) 205 self.actions.append(self.svnChangeListsAct)
206 206
207 self.vcsTagAct = E5Action( 207 self.vcsTagAct = E5Action(
208 self.tr('Tag in repository'), 208 self.tr('Tag in repository'),
209 UI.PixmapCache.getIcon("vcsTag.png"), 209 UI.PixmapCache.getIcon("vcsTag.png"),
214 )) 214 ))
215 self.vcsTagAct.setWhatsThis(self.tr( 215 self.vcsTagAct.setWhatsThis(self.tr(
216 """<b>Tag in repository</b>""" 216 """<b>Tag in repository</b>"""
217 """<p>This tags the local project in the repository.</p>""" 217 """<p>This tags the local project in the repository.</p>"""
218 )) 218 ))
219 self.vcsTagAct.triggered[()].connect(self._vcsTag) 219 self.vcsTagAct.triggered.connect(self._vcsTag)
220 self.actions.append(self.vcsTagAct) 220 self.actions.append(self.vcsTagAct)
221 221
222 self.vcsExportAct = E5Action( 222 self.vcsExportAct = E5Action(
223 self.tr('Export from repository'), 223 self.tr('Export from repository'),
224 UI.PixmapCache.getIcon("vcsExport.png"), 224 UI.PixmapCache.getIcon("vcsExport.png"),
229 )) 229 ))
230 self.vcsExportAct.setWhatsThis(self.tr( 230 self.vcsExportAct.setWhatsThis(self.tr(
231 """<b>Export from repository</b>""" 231 """<b>Export from repository</b>"""
232 """<p>This exports a project from the repository.</p>""" 232 """<p>This exports a project from the repository.</p>"""
233 )) 233 ))
234 self.vcsExportAct.triggered[()].connect(self._vcsExport) 234 self.vcsExportAct.triggered.connect(self._vcsExport)
235 self.actions.append(self.vcsExportAct) 235 self.actions.append(self.vcsExportAct)
236 236
237 self.vcsPropsAct = E5Action( 237 self.vcsPropsAct = E5Action(
238 self.tr('Command options'), 238 self.tr('Command options'),
239 self.tr('Command &options...'), 0, 0, self, 239 self.tr('Command &options...'), 0, 0, self,
242 'Show the VCS command options')) 242 'Show the VCS command options'))
243 self.vcsPropsAct.setWhatsThis(self.tr( 243 self.vcsPropsAct.setWhatsThis(self.tr(
244 """<b>Command options...</b>""" 244 """<b>Command options...</b>"""
245 """<p>This shows a dialog to edit the VCS command options.</p>""" 245 """<p>This shows a dialog to edit the VCS command options.</p>"""
246 )) 246 ))
247 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) 247 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions)
248 self.actions.append(self.vcsPropsAct) 248 self.actions.append(self.vcsPropsAct)
249 249
250 self.vcsRevertAct = E5Action( 250 self.vcsRevertAct = E5Action(
251 self.tr('Revert changes'), 251 self.tr('Revert changes'),
252 UI.PixmapCache.getIcon("vcsRevert.png"), 252 UI.PixmapCache.getIcon("vcsRevert.png"),
257 )) 257 ))
258 self.vcsRevertAct.setWhatsThis(self.tr( 258 self.vcsRevertAct.setWhatsThis(self.tr(
259 """<b>Revert changes</b>""" 259 """<b>Revert changes</b>"""
260 """<p>This reverts all changes made to the local project.</p>""" 260 """<p>This reverts all changes made to the local project.</p>"""
261 )) 261 ))
262 self.vcsRevertAct.triggered[()].connect(self._vcsRevert) 262 self.vcsRevertAct.triggered.connect(self._vcsRevert)
263 self.actions.append(self.vcsRevertAct) 263 self.actions.append(self.vcsRevertAct)
264 264
265 self.vcsMergeAct = E5Action( 265 self.vcsMergeAct = E5Action(
266 self.tr('Merge'), 266 self.tr('Merge'),
267 UI.PixmapCache.getIcon("vcsMerge.png"), 267 UI.PixmapCache.getIcon("vcsMerge.png"),
273 self.vcsMergeAct.setWhatsThis(self.tr( 273 self.vcsMergeAct.setWhatsThis(self.tr(
274 """<b>Merge</b>""" 274 """<b>Merge</b>"""
275 """<p>This merges changes of a tag/revision into the local""" 275 """<p>This merges changes of a tag/revision into the local"""
276 """ project.</p>""" 276 """ project.</p>"""
277 )) 277 ))
278 self.vcsMergeAct.triggered[()].connect(self._vcsMerge) 278 self.vcsMergeAct.triggered.connect(self._vcsMerge)
279 self.actions.append(self.vcsMergeAct) 279 self.actions.append(self.vcsMergeAct)
280 280
281 self.vcsSwitchAct = E5Action( 281 self.vcsSwitchAct = E5Action(
282 self.tr('Switch'), 282 self.tr('Switch'),
283 UI.PixmapCache.getIcon("vcsSwitch.png"), 283 UI.PixmapCache.getIcon("vcsSwitch.png"),
288 )) 288 ))
289 self.vcsSwitchAct.setWhatsThis(self.tr( 289 self.vcsSwitchAct.setWhatsThis(self.tr(
290 """<b>Switch</b>""" 290 """<b>Switch</b>"""
291 """<p>This switches the local copy to another tag/branch.</p>""" 291 """<p>This switches the local copy to another tag/branch.</p>"""
292 )) 292 ))
293 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) 293 self.vcsSwitchAct.triggered.connect(self._vcsSwitch)
294 self.actions.append(self.vcsSwitchAct) 294 self.actions.append(self.vcsSwitchAct)
295 295
296 self.vcsResolveAct = E5Action( 296 self.vcsResolveAct = E5Action(
297 self.tr('Conflicts resolved'), 297 self.tr('Conflicts resolved'),
298 self.tr('Con&flicts resolved'), 298 self.tr('Con&flicts resolved'),
303 self.vcsResolveAct.setWhatsThis(self.tr( 303 self.vcsResolveAct.setWhatsThis(self.tr(
304 """<b>Conflicts resolved</b>""" 304 """<b>Conflicts resolved</b>"""
305 """<p>This marks all conflicts of the local project as""" 305 """<p>This marks all conflicts of the local project as"""
306 """ resolved.</p>""" 306 """ resolved.</p>"""
307 )) 307 ))
308 self.vcsResolveAct.triggered[()].connect(self.__svnResolve) 308 self.vcsResolveAct.triggered.connect(self.__svnResolve)
309 self.actions.append(self.vcsResolveAct) 309 self.actions.append(self.vcsResolveAct)
310 310
311 self.vcsCleanupAct = E5Action( 311 self.vcsCleanupAct = E5Action(
312 self.tr('Cleanup'), 312 self.tr('Cleanup'),
313 self.tr('Cleanu&p'), 313 self.tr('Cleanu&p'),
317 )) 317 ))
318 self.vcsCleanupAct.setWhatsThis(self.tr( 318 self.vcsCleanupAct.setWhatsThis(self.tr(
319 """<b>Cleanup</b>""" 319 """<b>Cleanup</b>"""
320 """<p>This performs a cleanup of the local project.</p>""" 320 """<p>This performs a cleanup of the local project.</p>"""
321 )) 321 ))
322 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) 322 self.vcsCleanupAct.triggered.connect(self._vcsCleanup)
323 self.actions.append(self.vcsCleanupAct) 323 self.actions.append(self.vcsCleanupAct)
324 324
325 self.vcsCommandAct = E5Action( 325 self.vcsCommandAct = E5Action(
326 self.tr('Execute command'), 326 self.tr('Execute command'),
327 self.tr('E&xecute command...'), 327 self.tr('E&xecute command...'),
331 )) 331 ))
332 self.vcsCommandAct.setWhatsThis(self.tr( 332 self.vcsCommandAct.setWhatsThis(self.tr(
333 """<b>Execute command</b>""" 333 """<b>Execute command</b>"""
334 """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" 334 """<p>This opens a dialog to enter an arbitrary VCS command.</p>"""
335 )) 335 ))
336 self.vcsCommandAct.triggered[()].connect(self._vcsCommand) 336 self.vcsCommandAct.triggered.connect(self._vcsCommand)
337 self.actions.append(self.vcsCommandAct) 337 self.actions.append(self.vcsCommandAct)
338 338
339 self.svnTagListAct = E5Action( 339 self.svnTagListAct = E5Action(
340 self.tr('List tags'), 340 self.tr('List tags'),
341 self.tr('List tags...'), 341 self.tr('List tags...'),
345 )) 345 ))
346 self.svnTagListAct.setWhatsThis(self.tr( 346 self.svnTagListAct.setWhatsThis(self.tr(
347 """<b>List tags</b>""" 347 """<b>List tags</b>"""
348 """<p>This lists the tags of the project.</p>""" 348 """<p>This lists the tags of the project.</p>"""
349 )) 349 ))
350 self.svnTagListAct.triggered[()].connect(self.__svnTagList) 350 self.svnTagListAct.triggered.connect(self.__svnTagList)
351 self.actions.append(self.svnTagListAct) 351 self.actions.append(self.svnTagListAct)
352 352
353 self.svnBranchListAct = E5Action( 353 self.svnBranchListAct = E5Action(
354 self.tr('List branches'), 354 self.tr('List branches'),
355 self.tr('List branches...'), 355 self.tr('List branches...'),
359 )) 359 ))
360 self.svnBranchListAct.setWhatsThis(self.tr( 360 self.svnBranchListAct.setWhatsThis(self.tr(
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( 367 self.svnListAct = E5Action(
368 self.tr('List repository contents'), 368 self.tr('List repository contents'),
369 self.tr('List repository contents...'), 369 self.tr('List repository contents...'),
373 )) 373 ))
374 self.svnListAct.setWhatsThis(self.tr( 374 self.svnListAct.setWhatsThis(self.tr(
375 """<b>List repository contents</b>""" 375 """<b>List repository contents</b>"""
376 """<p>This lists the contents of the repository.</p>""" 376 """<p>This lists the contents of the repository.</p>"""
377 )) 377 ))
378 self.svnListAct.triggered[()].connect(self.__svnTagList) 378 self.svnListAct.triggered.connect(self.__svnTagList)
379 self.actions.append(self.svnListAct) 379 self.actions.append(self.svnListAct)
380 380
381 self.svnPropSetAct = E5Action( 381 self.svnPropSetAct = E5Action(
382 self.tr('Set Property'), 382 self.tr('Set Property'),
383 self.tr('Set Property...'), 383 self.tr('Set Property...'),
387 )) 387 ))
388 self.svnPropSetAct.setWhatsThis(self.tr( 388 self.svnPropSetAct.setWhatsThis(self.tr(
389 """<b>Set Property</b>""" 389 """<b>Set Property</b>"""
390 """<p>This sets a property for the project files.</p>""" 390 """<p>This sets a property for the project files.</p>"""
391 )) 391 ))
392 self.svnPropSetAct.triggered[()].connect(self.__svnPropSet) 392 self.svnPropSetAct.triggered.connect(self.__svnPropSet)
393 self.actions.append(self.svnPropSetAct) 393 self.actions.append(self.svnPropSetAct)
394 394
395 self.svnPropListAct = E5Action( 395 self.svnPropListAct = E5Action(
396 self.tr('List Properties'), 396 self.tr('List Properties'),
397 self.tr('List Properties...'), 397 self.tr('List Properties...'),
401 )) 401 ))
402 self.svnPropListAct.setWhatsThis(self.tr( 402 self.svnPropListAct.setWhatsThis(self.tr(
403 """<b>List Properties</b>""" 403 """<b>List Properties</b>"""
404 """<p>This lists the properties of the project files.</p>""" 404 """<p>This lists the properties of the project files.</p>"""
405 )) 405 ))
406 self.svnPropListAct.triggered[()].connect(self.__svnPropList) 406 self.svnPropListAct.triggered.connect(self.__svnPropList)
407 self.actions.append(self.svnPropListAct) 407 self.actions.append(self.svnPropListAct)
408 408
409 self.svnPropDelAct = E5Action( 409 self.svnPropDelAct = E5Action(
410 self.tr('Delete Property'), 410 self.tr('Delete Property'),
411 self.tr('Delete Property...'), 411 self.tr('Delete Property...'),
415 )) 415 ))
416 self.svnPropDelAct.setWhatsThis(self.tr( 416 self.svnPropDelAct.setWhatsThis(self.tr(
417 """<b>Delete Property</b>""" 417 """<b>Delete Property</b>"""
418 """<p>This deletes a property for the project files.</p>""" 418 """<p>This deletes a property for the project files.</p>"""
419 )) 419 ))
420 self.svnPropDelAct.triggered[()].connect(self.__svnPropDel) 420 self.svnPropDelAct.triggered.connect(self.__svnPropDel)
421 self.actions.append(self.svnPropDelAct) 421 self.actions.append(self.svnPropDelAct)
422 422
423 self.svnRelocateAct = E5Action( 423 self.svnRelocateAct = E5Action(
424 self.tr('Relocate'), 424 self.tr('Relocate'),
425 UI.PixmapCache.getIcon("vcsSwitch.png"), 425 UI.PixmapCache.getIcon("vcsSwitch.png"),
431 self.svnRelocateAct.setWhatsThis(self.tr( 431 self.svnRelocateAct.setWhatsThis(self.tr(
432 """<b>Relocate</b>""" 432 """<b>Relocate</b>"""
433 """<p>This relocates the working copy to a new repository""" 433 """<p>This relocates the working copy to a new repository"""
434 """ URL.</p>""" 434 """ URL.</p>"""
435 )) 435 ))
436 self.svnRelocateAct.triggered[()].connect(self.__svnRelocate) 436 self.svnRelocateAct.triggered.connect(self.__svnRelocate)
437 self.actions.append(self.svnRelocateAct) 437 self.actions.append(self.svnRelocateAct)
438 438
439 self.svnRepoBrowserAct = E5Action( 439 self.svnRepoBrowserAct = E5Action(
440 self.tr('Repository Browser'), 440 self.tr('Repository Browser'),
441 UI.PixmapCache.getIcon("vcsRepoBrowser.png"), 441 UI.PixmapCache.getIcon("vcsRepoBrowser.png"),
446 )) 446 ))
447 self.svnRepoBrowserAct.setWhatsThis(self.tr( 447 self.svnRepoBrowserAct.setWhatsThis(self.tr(
448 """<b>Repository Browser</b>""" 448 """<b>Repository Browser</b>"""
449 """<p>This shows the Repository Browser dialog.</p>""" 449 """<p>This shows the Repository Browser dialog.</p>"""
450 )) 450 ))
451 self.svnRepoBrowserAct.triggered[()].connect(self.__svnRepoBrowser) 451 self.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser)
452 self.actions.append(self.svnRepoBrowserAct) 452 self.actions.append(self.svnRepoBrowserAct)
453 453
454 self.svnConfigAct = E5Action( 454 self.svnConfigAct = E5Action(
455 self.tr('Configure'), 455 self.tr('Configure'),
456 self.tr('Configure...'), 456 self.tr('Configure...'),
461 self.svnConfigAct.setWhatsThis(self.tr( 461 self.svnConfigAct.setWhatsThis(self.tr(
462 """<b>Configure</b>""" 462 """<b>Configure</b>"""
463 """<p>Show the configuration dialog with the Subversion page""" 463 """<p>Show the configuration dialog with the Subversion page"""
464 """ selected.</p>""" 464 """ selected.</p>"""
465 )) 465 ))
466 self.svnConfigAct.triggered[()].connect(self.__svnConfigure) 466 self.svnConfigAct.triggered.connect(self.__svnConfigure)
467 self.actions.append(self.svnConfigAct) 467 self.actions.append(self.svnConfigAct)
468 468
469 self.svnUpgradeAct = E5Action( 469 self.svnUpgradeAct = E5Action(
470 self.tr('Upgrade'), 470 self.tr('Upgrade'),
471 self.tr('Upgrade...'), 471 self.tr('Upgrade...'),
475 )) 475 ))
476 self.svnUpgradeAct.setWhatsThis(self.tr( 476 self.svnUpgradeAct.setWhatsThis(self.tr(
477 """<b>Upgrade</b>""" 477 """<b>Upgrade</b>"""
478 """<p>Upgrades the working copy to the current format.</p>""" 478 """<p>Upgrades the working copy to the current format.</p>"""
479 )) 479 ))
480 self.svnUpgradeAct.triggered[()].connect(self.__svnUpgrade) 480 self.svnUpgradeAct.triggered.connect(self.__svnUpgrade)
481 self.actions.append(self.svnUpgradeAct) 481 self.actions.append(self.svnUpgradeAct)
482 482
483 def initMenu(self, menu): 483 def initMenu(self, menu):
484 """ 484 """
485 Public method to generate the VCS menu. 485 Public method to generate the VCS menu.

eric ide

mercurial