eric6/Plugins/VcsPlugins/vcsSubversion/ProjectHelper.py

changeset 6942
2602857055c5
parent 6645
ad476851d7e0
child 7229
53054eb5b15a
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2005 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing the VCS project helper for Subversion.
8 """
9
10 from __future__ import unicode_literals
11
12 import os
13
14 from PyQt5.QtWidgets import QToolBar
15
16 from VCS.ProjectHelper import VcsProjectHelper
17
18 from E5Gui.E5Action import E5Action
19 from E5Gui.E5Application import e5App
20
21 import UI.PixmapCache
22
23
24 class SvnProjectHelper(VcsProjectHelper):
25 """
26 Class implementing the VCS project helper for Subversion.
27 """
28 def __init__(self, vcsObject, projectObject, parent=None, name=None):
29 """
30 Constructor
31
32 @param vcsObject reference to the vcs object
33 @param projectObject reference to the project object
34 @param parent parent widget (QWidget)
35 @param name name of this object (string)
36 """
37 VcsProjectHelper.__init__(self, vcsObject, projectObject, parent, name)
38
39 def getActions(self):
40 """
41 Public method to get a list of all actions.
42
43 @return list of all actions (list of E5Action)
44 """
45 return self.actions[:]
46
47 def initActions(self):
48 """
49 Public method to generate the action objects.
50 """
51 self.vcsNewAct = E5Action(
52 self.tr('New from repository'),
53 UI.PixmapCache.getIcon("vcsCheckout.png"),
54 self.tr('&New from repository...'), 0, 0, self,
55 'subversion_new')
56 self.vcsNewAct.setStatusTip(self.tr(
57 'Create a new project from the VCS repository'
58 ))
59 self.vcsNewAct.setWhatsThis(self.tr(
60 """<b>New from repository</b>"""
61 """<p>This creates a new local project from the VCS"""
62 """ repository.</p>"""
63 ))
64 self.vcsNewAct.triggered.connect(self._vcsCheckout)
65 self.actions.append(self.vcsNewAct)
66
67 self.vcsUpdateAct = E5Action(
68 self.tr('Update from repository'),
69 UI.PixmapCache.getIcon("vcsUpdate.png"),
70 self.tr('&Update from repository'), 0, 0, self,
71 'subversion_update')
72 self.vcsUpdateAct.setStatusTip(self.tr(
73 'Update the local project from the VCS repository'
74 ))
75 self.vcsUpdateAct.setWhatsThis(self.tr(
76 """<b>Update from repository</b>"""
77 """<p>This updates the local project from the VCS"""
78 """ repository.</p>"""
79 ))
80 self.vcsUpdateAct.triggered.connect(self._vcsUpdate)
81 self.actions.append(self.vcsUpdateAct)
82
83 self.vcsCommitAct = E5Action(
84 self.tr('Commit changes to repository'),
85 UI.PixmapCache.getIcon("vcsCommit.png"),
86 self.tr('&Commit changes to repository...'), 0, 0, self,
87 'subversion_commit')
88 self.vcsCommitAct.setStatusTip(self.tr(
89 'Commit changes to the local project to the VCS repository'
90 ))
91 self.vcsCommitAct.setWhatsThis(self.tr(
92 """<b>Commit changes to repository</b>"""
93 """<p>This commits changes to the local project to the VCS"""
94 """ repository.</p>"""
95 ))
96 self.vcsCommitAct.triggered.connect(self._vcsCommit)
97 self.actions.append(self.vcsCommitAct)
98
99 self.svnLogBrowserAct = E5Action(
100 self.tr('Show log browser'),
101 UI.PixmapCache.getIcon("vcsLog.png"),
102 self.tr('Show log browser'),
103 0, 0, self, 'subversion_log_browser')
104 self.svnLogBrowserAct.setStatusTip(self.tr(
105 'Show a dialog to browse the log of the local project'
106 ))
107 self.svnLogBrowserAct.setWhatsThis(self.tr(
108 """<b>Show log browser</b>"""
109 """<p>This shows a dialog to browse the log of the local"""
110 """ project. A limited number of entries is shown first. More"""
111 """ can be retrieved later on.</p>"""
112 ))
113 self.svnLogBrowserAct.triggered.connect(self._vcsLogBrowser)
114 self.actions.append(self.svnLogBrowserAct)
115
116 self.vcsDiffAct = E5Action(
117 self.tr('Show differences'),
118 UI.PixmapCache.getIcon("vcsDiff.png"),
119 self.tr('Show &difference'),
120 0, 0, self, 'subversion_diff')
121 self.vcsDiffAct.setStatusTip(self.tr(
122 'Show the difference of the local project to the repository'
123 ))
124 self.vcsDiffAct.setWhatsThis(self.tr(
125 """<b>Show differences</b>"""
126 """<p>This shows differences of the local project to the"""
127 """ repository.</p>"""
128 ))
129 self.vcsDiffAct.triggered.connect(self._vcsDiff)
130 self.actions.append(self.vcsDiffAct)
131
132 self.svnExtDiffAct = E5Action(
133 self.tr('Show differences (extended)'),
134 UI.PixmapCache.getIcon("vcsDiff.png"),
135 self.tr('Show differences (extended)'),
136 0, 0, self, 'subversion_extendeddiff')
137 self.svnExtDiffAct.setStatusTip(self.tr(
138 'Show the difference of revisions of the project to the repository'
139 ))
140 self.svnExtDiffAct.setWhatsThis(self.tr(
141 """<b>Show differences (extended)</b>"""
142 """<p>This shows differences of selectable revisions of"""
143 """ the project.</p>"""
144 ))
145 self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff)
146 self.actions.append(self.svnExtDiffAct)
147
148 self.svnUrlDiffAct = E5Action(
149 self.tr('Show differences (URLs)'),
150 UI.PixmapCache.getIcon("vcsDiff.png"),
151 self.tr('Show differences (URLs)'),
152 0, 0, self, 'subversion_urldiff')
153 self.svnUrlDiffAct.setStatusTip(self.tr(
154 'Show the difference of the project between two repository URLs'
155 ))
156 self.svnUrlDiffAct.setWhatsThis(self.tr(
157 """<b>Show differences (URLs)</b>"""
158 """<p>This shows differences of the project between"""
159 """ two repository URLs.</p>"""
160 ))
161 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff)
162 self.actions.append(self.svnUrlDiffAct)
163
164 self.vcsStatusAct = E5Action(
165 self.tr('Show status'),
166 UI.PixmapCache.getIcon("vcsStatus.png"),
167 self.tr('Show &status'),
168 0, 0, self, 'subversion_status')
169 self.vcsStatusAct.setStatusTip(self.tr(
170 'Show the status of the local project'
171 ))
172 self.vcsStatusAct.setWhatsThis(self.tr(
173 """<b>Show status</b>"""
174 """<p>This shows the status of the local project.</p>"""
175 ))
176 self.vcsStatusAct.triggered.connect(self._vcsStatus)
177 self.actions.append(self.vcsStatusAct)
178
179 self.svnChangeListsAct = E5Action(
180 self.tr('Show change lists'),
181 UI.PixmapCache.getIcon("vcsChangeLists.png"),
182 self.tr('Show change lists'),
183 0, 0, self, 'subversion_changelists')
184 self.svnChangeListsAct.setStatusTip(self.tr(
185 'Show the change lists and associated files of the local project'
186 ))
187 self.svnChangeListsAct.setWhatsThis(self.tr(
188 """<b>Show change lists</b>"""
189 """<p>This shows the change lists and associated files of the"""
190 """ local project.</p>"""
191 ))
192 self.svnChangeListsAct.triggered.connect(self.__svnChangeLists)
193 self.actions.append(self.svnChangeListsAct)
194
195 self.vcsTagAct = E5Action(
196 self.tr('Tag in repository'),
197 UI.PixmapCache.getIcon("vcsTag.png"),
198 self.tr('&Tag in repository...'),
199 0, 0, self, 'subversion_tag')
200 self.vcsTagAct.setStatusTip(self.tr(
201 'Tag the local project in the repository'
202 ))
203 self.vcsTagAct.setWhatsThis(self.tr(
204 """<b>Tag in repository</b>"""
205 """<p>This tags the local project in the repository.</p>"""
206 ))
207 self.vcsTagAct.triggered.connect(self._vcsTag)
208 self.actions.append(self.vcsTagAct)
209
210 self.vcsExportAct = E5Action(
211 self.tr('Export from repository'),
212 UI.PixmapCache.getIcon("vcsExport.png"),
213 self.tr('&Export from repository...'),
214 0, 0, self, 'subversion_export')
215 self.vcsExportAct.setStatusTip(self.tr(
216 'Export a project from the repository'
217 ))
218 self.vcsExportAct.setWhatsThis(self.tr(
219 """<b>Export from repository</b>"""
220 """<p>This exports a project from the repository.</p>"""
221 ))
222 self.vcsExportAct.triggered.connect(self._vcsExport)
223 self.actions.append(self.vcsExportAct)
224
225 self.vcsPropsAct = E5Action(
226 self.tr('Command options'),
227 self.tr('Command &options...'), 0, 0, self,
228 'subversion_options')
229 self.vcsPropsAct.setStatusTip(self.tr(
230 'Show the VCS command options'))
231 self.vcsPropsAct.setWhatsThis(self.tr(
232 """<b>Command options...</b>"""
233 """<p>This shows a dialog to edit the VCS command options.</p>"""
234 ))
235 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions)
236 self.actions.append(self.vcsPropsAct)
237
238 self.vcsRevertAct = E5Action(
239 self.tr('Revert changes'),
240 UI.PixmapCache.getIcon("vcsRevert.png"),
241 self.tr('Re&vert changes'),
242 0, 0, self, 'subversion_revert')
243 self.vcsRevertAct.setStatusTip(self.tr(
244 'Revert all changes made to the local project'
245 ))
246 self.vcsRevertAct.setWhatsThis(self.tr(
247 """<b>Revert changes</b>"""
248 """<p>This reverts all changes made to the local project.</p>"""
249 ))
250 self.vcsRevertAct.triggered.connect(self._vcsRevert)
251 self.actions.append(self.vcsRevertAct)
252
253 self.vcsMergeAct = E5Action(
254 self.tr('Merge'),
255 UI.PixmapCache.getIcon("vcsMerge.png"),
256 self.tr('Mer&ge changes...'),
257 0, 0, self, 'subversion_merge')
258 self.vcsMergeAct.setStatusTip(self.tr(
259 'Merge changes of a tag/revision into the local project'
260 ))
261 self.vcsMergeAct.setWhatsThis(self.tr(
262 """<b>Merge</b>"""
263 """<p>This merges changes of a tag/revision into the local"""
264 """ project.</p>"""
265 ))
266 self.vcsMergeAct.triggered.connect(self._vcsMerge)
267 self.actions.append(self.vcsMergeAct)
268
269 self.vcsSwitchAct = E5Action(
270 self.tr('Switch'),
271 UI.PixmapCache.getIcon("vcsSwitch.png"),
272 self.tr('S&witch...'),
273 0, 0, self, 'subversion_switch')
274 self.vcsSwitchAct.setStatusTip(self.tr(
275 'Switch the local copy to another tag/branch'
276 ))
277 self.vcsSwitchAct.setWhatsThis(self.tr(
278 """<b>Switch</b>"""
279 """<p>This switches the local copy to another tag/branch.</p>"""
280 ))
281 self.vcsSwitchAct.triggered.connect(self._vcsSwitch)
282 self.actions.append(self.vcsSwitchAct)
283
284 self.vcsResolveAct = E5Action(
285 self.tr('Conflicts resolved'),
286 self.tr('Con&flicts resolved'),
287 0, 0, self, 'subversion_resolve')
288 self.vcsResolveAct.setStatusTip(self.tr(
289 'Mark all conflicts of the local project as resolved'
290 ))
291 self.vcsResolveAct.setWhatsThis(self.tr(
292 """<b>Conflicts resolved</b>"""
293 """<p>This marks all conflicts of the local project as"""
294 """ resolved.</p>"""
295 ))
296 self.vcsResolveAct.triggered.connect(self.__svnResolve)
297 self.actions.append(self.vcsResolveAct)
298
299 self.vcsCleanupAct = E5Action(
300 self.tr('Cleanup'),
301 self.tr('Cleanu&p'),
302 0, 0, self, 'subversion_cleanup')
303 self.vcsCleanupAct.setStatusTip(self.tr(
304 'Cleanup the local project'
305 ))
306 self.vcsCleanupAct.setWhatsThis(self.tr(
307 """<b>Cleanup</b>"""
308 """<p>This performs a cleanup of the local project.</p>"""
309 ))
310 self.vcsCleanupAct.triggered.connect(self._vcsCleanup)
311 self.actions.append(self.vcsCleanupAct)
312
313 self.vcsCommandAct = E5Action(
314 self.tr('Execute command'),
315 self.tr('E&xecute command...'),
316 0, 0, self, 'subversion_command')
317 self.vcsCommandAct.setStatusTip(self.tr(
318 'Execute an arbitrary VCS command'
319 ))
320 self.vcsCommandAct.setWhatsThis(self.tr(
321 """<b>Execute command</b>"""
322 """<p>This opens a dialog to enter an arbitrary VCS command.</p>"""
323 ))
324 self.vcsCommandAct.triggered.connect(self._vcsCommand)
325 self.actions.append(self.vcsCommandAct)
326
327 self.svnTagListAct = E5Action(
328 self.tr('List tags'),
329 self.tr('List tags...'),
330 0, 0, self, 'subversion_list_tags')
331 self.svnTagListAct.setStatusTip(self.tr(
332 'List tags of the project'
333 ))
334 self.svnTagListAct.setWhatsThis(self.tr(
335 """<b>List tags</b>"""
336 """<p>This lists the tags of the project.</p>"""
337 ))
338 self.svnTagListAct.triggered.connect(self.__svnTagList)
339 self.actions.append(self.svnTagListAct)
340
341 self.svnBranchListAct = E5Action(
342 self.tr('List branches'),
343 self.tr('List branches...'),
344 0, 0, self, 'subversion_list_branches')
345 self.svnBranchListAct.setStatusTip(self.tr(
346 'List branches of the project'
347 ))
348 self.svnBranchListAct.setWhatsThis(self.tr(
349 """<b>List branches</b>"""
350 """<p>This lists the branches of the project.</p>"""
351 ))
352 self.svnBranchListAct.triggered.connect(self.__svnBranchList)
353 self.actions.append(self.svnBranchListAct)
354
355 self.svnListAct = E5Action(
356 self.tr('List repository contents'),
357 self.tr('List repository contents...'),
358 0, 0, self, 'subversion_contents')
359 self.svnListAct.setStatusTip(self.tr(
360 'Lists the contents of the repository'
361 ))
362 self.svnListAct.setWhatsThis(self.tr(
363 """<b>List repository contents</b>"""
364 """<p>This lists the contents of the repository.</p>"""
365 ))
366 self.svnListAct.triggered.connect(self.__svnTagList)
367 self.actions.append(self.svnListAct)
368
369 self.svnPropSetAct = E5Action(
370 self.tr('Set Property'),
371 self.tr('Set Property...'),
372 0, 0, self, 'subversion_property_set')
373 self.svnPropSetAct.setStatusTip(self.tr(
374 'Set a property for the project files'
375 ))
376 self.svnPropSetAct.setWhatsThis(self.tr(
377 """<b>Set Property</b>"""
378 """<p>This sets a property for the project files.</p>"""
379 ))
380 self.svnPropSetAct.triggered.connect(self.__svnPropSet)
381 self.actions.append(self.svnPropSetAct)
382
383 self.svnPropListAct = E5Action(
384 self.tr('List Properties'),
385 self.tr('List Properties...'),
386 0, 0, self, 'subversion_property_list')
387 self.svnPropListAct.setStatusTip(self.tr(
388 'List properties of the project files'
389 ))
390 self.svnPropListAct.setWhatsThis(self.tr(
391 """<b>List Properties</b>"""
392 """<p>This lists the properties of the project files.</p>"""
393 ))
394 self.svnPropListAct.triggered.connect(self.__svnPropList)
395 self.actions.append(self.svnPropListAct)
396
397 self.svnPropDelAct = E5Action(
398 self.tr('Delete Property'),
399 self.tr('Delete Property...'),
400 0, 0, self, 'subversion_property_delete')
401 self.svnPropDelAct.setStatusTip(self.tr(
402 'Delete a property for the project files'
403 ))
404 self.svnPropDelAct.setWhatsThis(self.tr(
405 """<b>Delete Property</b>"""
406 """<p>This deletes a property for the project files.</p>"""
407 ))
408 self.svnPropDelAct.triggered.connect(self.__svnPropDel)
409 self.actions.append(self.svnPropDelAct)
410
411 self.svnRelocateAct = E5Action(
412 self.tr('Relocate'),
413 UI.PixmapCache.getIcon("vcsSwitch.png"),
414 self.tr('Relocate...'),
415 0, 0, self, 'subversion_relocate')
416 self.svnRelocateAct.setStatusTip(self.tr(
417 'Relocate the working copy to a new repository URL'
418 ))
419 self.svnRelocateAct.setWhatsThis(self.tr(
420 """<b>Relocate</b>"""
421 """<p>This relocates the working copy to a new repository"""
422 """ URL.</p>"""
423 ))
424 self.svnRelocateAct.triggered.connect(self.__svnRelocate)
425 self.actions.append(self.svnRelocateAct)
426
427 self.svnRepoBrowserAct = E5Action(
428 self.tr('Repository Browser'),
429 UI.PixmapCache.getIcon("vcsRepoBrowser.png"),
430 self.tr('Repository Browser...'),
431 0, 0, self, 'subversion_repo_browser')
432 self.svnRepoBrowserAct.setStatusTip(self.tr(
433 'Show the Repository Browser dialog'
434 ))
435 self.svnRepoBrowserAct.setWhatsThis(self.tr(
436 """<b>Repository Browser</b>"""
437 """<p>This shows the Repository Browser dialog.</p>"""
438 ))
439 self.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser)
440 self.actions.append(self.svnRepoBrowserAct)
441
442 self.svnConfigAct = E5Action(
443 self.tr('Configure'),
444 self.tr('Configure...'),
445 0, 0, self, 'subversion_configure')
446 self.svnConfigAct.setStatusTip(self.tr(
447 'Show the configuration dialog with the Subversion page selected'
448 ))
449 self.svnConfigAct.setWhatsThis(self.tr(
450 """<b>Configure</b>"""
451 """<p>Show the configuration dialog with the Subversion page"""
452 """ selected.</p>"""
453 ))
454 self.svnConfigAct.triggered.connect(self.__svnConfigure)
455 self.actions.append(self.svnConfigAct)
456
457 self.svnUpgradeAct = E5Action(
458 self.tr('Upgrade'),
459 self.tr('Upgrade...'),
460 0, 0, self, 'subversion_upgrade')
461 self.svnUpgradeAct.setStatusTip(self.tr(
462 'Upgrade the working copy to the current format'
463 ))
464 self.svnUpgradeAct.setWhatsThis(self.tr(
465 """<b>Upgrade</b>"""
466 """<p>Upgrades the working copy to the current format.</p>"""
467 ))
468 self.svnUpgradeAct.triggered.connect(self.__svnUpgrade)
469 self.actions.append(self.svnUpgradeAct)
470
471 def initMenu(self, menu):
472 """
473 Public method to generate the VCS menu.
474
475 @param menu reference to the menu to be populated (QMenu)
476 """
477 menu.clear()
478
479 act = menu.addAction(
480 UI.PixmapCache.getIcon(
481 os.path.join("VcsPlugins", "vcsSubversion", "icons",
482 "subversion.png")),
483 self.vcs.vcsName(), self._vcsInfoDisplay)
484 font = act.font()
485 font.setBold(True)
486 act.setFont(font)
487 menu.addSeparator()
488
489 menu.addAction(self.vcsUpdateAct)
490 menu.addAction(self.vcsCommitAct)
491 menu.addSeparator()
492 menu.addAction(self.vcsTagAct)
493 if self.vcs.otherData["standardLayout"]:
494 menu.addAction(self.svnTagListAct)
495 menu.addAction(self.svnBranchListAct)
496 else:
497 menu.addAction(self.svnListAct)
498 menu.addSeparator()
499 menu.addAction(self.svnLogBrowserAct)
500 menu.addSeparator()
501 menu.addAction(self.vcsStatusAct)
502 menu.addAction(self.svnChangeListsAct)
503 menu.addSeparator()
504 menu.addAction(self.vcsDiffAct)
505 menu.addAction(self.svnExtDiffAct)
506 menu.addAction(self.svnUrlDiffAct)
507 menu.addSeparator()
508 menu.addAction(self.vcsRevertAct)
509 menu.addAction(self.vcsMergeAct)
510 menu.addAction(self.vcsResolveAct)
511 menu.addSeparator()
512 menu.addAction(self.svnRelocateAct)
513 menu.addAction(self.vcsSwitchAct)
514 menu.addSeparator()
515 menu.addAction(self.svnPropSetAct)
516 menu.addAction(self.svnPropListAct)
517 menu.addAction(self.svnPropDelAct)
518 menu.addSeparator()
519 menu.addAction(self.vcsCleanupAct)
520 menu.addSeparator()
521 menu.addAction(self.vcsCommandAct)
522 menu.addAction(self.svnRepoBrowserAct)
523 menu.addAction(self.svnUpgradeAct)
524 menu.addSeparator()
525 menu.addAction(self.vcsPropsAct)
526 menu.addSeparator()
527 menu.addAction(self.svnConfigAct)
528 menu.addSeparator()
529 menu.addAction(self.vcsNewAct)
530 menu.addAction(self.vcsExportAct)
531
532 def initToolbar(self, ui, toolbarManager):
533 """
534 Public slot to initialize the VCS toolbar.
535
536 @param ui reference to the main window (UserInterface)
537 @param toolbarManager reference to a toolbar manager object
538 (E5ToolBarManager)
539 """
540 self.__toolbar = QToolBar(self.tr("Subversion (svn)"), ui)
541 self.__toolbar.setIconSize(UI.Config.ToolBarIconSize)
542 self.__toolbar.setObjectName("SubversionToolbar")
543 self.__toolbar.setToolTip(self.tr('Subversion (svn)'))
544
545 self.__toolbar.addAction(self.svnLogBrowserAct)
546 self.__toolbar.addAction(self.vcsStatusAct)
547 self.__toolbar.addSeparator()
548 self.__toolbar.addAction(self.vcsDiffAct)
549 self.__toolbar.addSeparator()
550 self.__toolbar.addAction(self.svnRepoBrowserAct)
551 self.__toolbar.addAction(self.vcsNewAct)
552 self.__toolbar.addAction(self.vcsExportAct)
553 self.__toolbar.addSeparator()
554
555 title = self.__toolbar.windowTitle()
556 toolbarManager.addToolBar(self.__toolbar, title)
557 toolbarManager.addAction(self.vcsUpdateAct, title)
558 toolbarManager.addAction(self.vcsCommitAct, title)
559 toolbarManager.addAction(self.svnExtDiffAct, title)
560 toolbarManager.addAction(self.svnUrlDiffAct, title)
561 toolbarManager.addAction(self.svnChangeListsAct, title)
562 toolbarManager.addAction(self.vcsTagAct, title)
563 toolbarManager.addAction(self.vcsRevertAct, title)
564 toolbarManager.addAction(self.vcsMergeAct, title)
565 toolbarManager.addAction(self.vcsSwitchAct, title)
566 toolbarManager.addAction(self.svnRelocateAct, title)
567
568 self.__toolbar.setEnabled(False)
569 self.__toolbar.setVisible(False)
570
571 ui.registerToolbar("subversion", self.__toolbar.windowTitle(),
572 self.__toolbar)
573 ui.addToolBar(self.__toolbar)
574
575 def removeToolbar(self, ui, toolbarManager):
576 """
577 Public method to remove a toolbar created by initToolbar().
578
579 @param ui reference to the main window (UserInterface)
580 @param toolbarManager reference to a toolbar manager object
581 (E5ToolBarManager)
582 """
583 ui.removeToolBar(self.__toolbar)
584 ui.unregisterToolbar("subversion")
585
586 title = self.__toolbar.windowTitle()
587 toolbarManager.removeCategoryActions(title)
588 toolbarManager.removeToolBar(self.__toolbar)
589
590 self.__toolbar.deleteLater()
591 self.__toolbar = None
592
593 def __svnResolve(self):
594 """
595 Private slot used to resolve conflicts of the local project.
596 """
597 self.vcs.svnResolve(self.project.ppath)
598
599 def __svnPropList(self):
600 """
601 Private slot used to list the properties of the project files.
602 """
603 self.vcs.svnListProps(self.project.ppath, True)
604
605 def __svnPropSet(self):
606 """
607 Private slot used to set a property for the project files.
608 """
609 self.vcs.svnSetProp(self.project.ppath, True)
610
611 def __svnPropDel(self):
612 """
613 Private slot used to delete a property for the project files.
614 """
615 self.vcs.svnDelProp(self.project.ppath, True)
616
617 def __svnTagList(self):
618 """
619 Private slot used to list the tags of the project.
620 """
621 self.vcs.svnListTagBranch(self.project.ppath, True)
622
623 def __svnBranchList(self):
624 """
625 Private slot used to list the branches of the project.
626 """
627 self.vcs.svnListTagBranch(self.project.ppath, False)
628
629 def __svnExtendedDiff(self):
630 """
631 Private slot used to perform a svn diff with the selection of
632 revisions.
633 """
634 self.vcs.svnExtendedDiff(self.project.ppath)
635
636 def __svnUrlDiff(self):
637 """
638 Private slot used to perform a svn diff with the selection of
639 repository URLs.
640 """
641 self.vcs.svnUrlDiff(self.project.ppath)
642
643 def __svnRelocate(self):
644 """
645 Private slot used to relocate the working copy to a new repository URL.
646 """
647 self.vcs.svnRelocate(self.project.ppath)
648
649 def __svnRepoBrowser(self):
650 """
651 Private slot to open the repository browser.
652 """
653 self.vcs.svnRepoBrowser(projectPath=self.project.ppath)
654
655 def __svnConfigure(self):
656 """
657 Private slot to open the configuration dialog.
658 """
659 e5App().getObject("UserInterface")\
660 .showPreferences("zzz_subversionPage")
661
662 def __svnChangeLists(self):
663 """
664 Private slot used to show a list of change lists.
665 """
666 self.vcs.svnShowChangelists(self.project.ppath)
667
668 def __svnUpgrade(self):
669 """
670 Private slot used to upgrade the working copy format.
671 """
672 self.vcs.svnUpgrade(self.project.ppath)

eric ide

mercurial