45 |
45 |
46 def initActions(self): |
46 def initActions(self): |
47 """ |
47 """ |
48 Public method to generate the action objects. |
48 Public method to generate the action objects. |
49 """ |
49 """ |
50 self.vcsNewAct = E5Action(self.trUtf8('New from repository'), |
50 self.vcsNewAct = E5Action( |
51 UI.PixmapCache.getIcon("vcsCheckout.png"), |
51 self.trUtf8('New from repository'), |
52 self.trUtf8('&New from repository...'), 0, 0, self, 'subversion_new') |
52 UI.PixmapCache.getIcon("vcsCheckout.png"), |
|
53 self.trUtf8('&New from repository...'), 0, 0, self, |
|
54 'subversion_new') |
53 self.vcsNewAct.setStatusTip(self.trUtf8( |
55 self.vcsNewAct.setStatusTip(self.trUtf8( |
54 'Create a new project from the VCS repository' |
56 'Create a new project from the VCS repository' |
55 )) |
57 )) |
56 self.vcsNewAct.setWhatsThis(self.trUtf8( |
58 self.vcsNewAct.setWhatsThis(self.trUtf8( |
57 """<b>New from repository</b>""" |
59 """<b>New from repository</b>""" |
58 """<p>This creates a new local project from the VCS repository.</p>""" |
60 """<p>This creates a new local project from the VCS""" |
|
61 """ repository.</p>""" |
59 )) |
62 )) |
60 self.vcsNewAct.triggered[()].connect(self._vcsCheckout) |
63 self.vcsNewAct.triggered[()].connect(self._vcsCheckout) |
61 self.actions.append(self.vcsNewAct) |
64 self.actions.append(self.vcsNewAct) |
62 |
65 |
63 self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'), |
66 self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'), |
67 self.vcsUpdateAct.setStatusTip(self.trUtf8( |
70 self.vcsUpdateAct.setStatusTip(self.trUtf8( |
68 'Update the local project from the VCS repository' |
71 'Update the local project from the VCS repository' |
69 )) |
72 )) |
70 self.vcsUpdateAct.setWhatsThis(self.trUtf8( |
73 self.vcsUpdateAct.setWhatsThis(self.trUtf8( |
71 """<b>Update from repository</b>""" |
74 """<b>Update from repository</b>""" |
72 """<p>This updates the local project from the VCS repository.</p>""" |
75 """<p>This updates the local project from the VCS""" |
|
76 """ repository.</p>""" |
73 )) |
77 )) |
74 self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate) |
78 self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate) |
75 self.actions.append(self.vcsUpdateAct) |
79 self.actions.append(self.vcsUpdateAct) |
76 |
80 |
77 self.vcsCommitAct = E5Action(self.trUtf8('Commit changes to repository'), |
81 self.vcsCommitAct = E5Action( |
78 UI.PixmapCache.getIcon("vcsCommit.png"), |
82 self.trUtf8('Commit changes to repository'), |
79 self.trUtf8('&Commit changes to repository...'), 0, 0, self, |
83 UI.PixmapCache.getIcon("vcsCommit.png"), |
80 'subversion_commit') |
84 self.trUtf8('&Commit changes to repository...'), 0, 0, self, |
|
85 'subversion_commit') |
81 self.vcsCommitAct.setStatusTip(self.trUtf8( |
86 self.vcsCommitAct.setStatusTip(self.trUtf8( |
82 'Commit changes to the local project to the VCS repository' |
87 'Commit changes to the local project to the VCS repository' |
83 )) |
88 )) |
84 self.vcsCommitAct.setWhatsThis(self.trUtf8( |
89 self.vcsCommitAct.setWhatsThis(self.trUtf8( |
85 """<b>Commit changes to repository</b>""" |
90 """<b>Commit changes to repository</b>""" |
86 """<p>This commits changes to the local project to the VCS repository.</p>""" |
91 """<p>This commits changes to the local project to the VCS""" |
|
92 """ repository.</p>""" |
87 )) |
93 )) |
88 self.vcsCommitAct.triggered[()].connect(self._vcsCommit) |
94 self.vcsCommitAct.triggered[()].connect(self._vcsCommit) |
89 self.actions.append(self.vcsCommitAct) |
95 self.actions.append(self.vcsCommitAct) |
90 |
96 |
91 self.vcsLogAct = E5Action(self.trUtf8('Show log'), |
97 self.vcsLogAct = E5Action(self.trUtf8('Show log'), |
109 self.svnLogBrowserAct.setStatusTip(self.trUtf8( |
115 self.svnLogBrowserAct.setStatusTip(self.trUtf8( |
110 'Show a dialog to browse the log of the local project' |
116 'Show a dialog to browse the log of the local project' |
111 )) |
117 )) |
112 self.svnLogBrowserAct.setWhatsThis(self.trUtf8( |
118 self.svnLogBrowserAct.setWhatsThis(self.trUtf8( |
113 """<b>Show log browser</b>""" |
119 """<b>Show log browser</b>""" |
114 """<p>This shows a dialog to browse the log of the local project.""" |
120 """<p>This shows a dialog to browse the log of the local""" |
115 """ A limited number of entries is shown first. More can be""" |
121 """ project. A limited number of entries is shown first. More""" |
116 """ retrieved later on.</p>""" |
122 """ can be retrieved later on.</p>""" |
117 )) |
123 )) |
118 self.svnLogBrowserAct.triggered[()].connect(self.__svnLogBrowser) |
124 self.svnLogBrowserAct.triggered[()].connect(self.__svnLogBrowser) |
119 self.actions.append(self.svnLogBrowserAct) |
125 self.actions.append(self.svnLogBrowserAct) |
120 |
126 |
121 self.vcsDiffAct = E5Action(self.trUtf8('Show difference'), |
127 self.vcsDiffAct = E5Action(self.trUtf8('Show difference'), |
125 self.vcsDiffAct.setStatusTip(self.trUtf8( |
131 self.vcsDiffAct.setStatusTip(self.trUtf8( |
126 'Show the difference of the local project to the repository' |
132 'Show the difference of the local project to the repository' |
127 )) |
133 )) |
128 self.vcsDiffAct.setWhatsThis(self.trUtf8( |
134 self.vcsDiffAct.setWhatsThis(self.trUtf8( |
129 """<b>Show difference</b>""" |
135 """<b>Show difference</b>""" |
130 """<p>This shows the difference of the local project to the repository.</p>""" |
136 """<p>This shows the difference of the local project to the""" |
|
137 """ repository.</p>""" |
131 )) |
138 )) |
132 self.vcsDiffAct.triggered[()].connect(self._vcsDiff) |
139 self.vcsDiffAct.triggered[()].connect(self._vcsDiff) |
133 self.actions.append(self.vcsDiffAct) |
140 self.actions.append(self.vcsDiffAct) |
134 |
141 |
135 self.svnExtDiffAct = E5Action(self.trUtf8('Show difference (extended)'), |
142 self.svnExtDiffAct = E5Action( |
136 UI.PixmapCache.getIcon("vcsDiff.png"), |
143 self.trUtf8('Show difference (extended)'), |
137 self.trUtf8('Show difference (extended)'), |
144 UI.PixmapCache.getIcon("vcsDiff.png"), |
138 0, 0, self, 'subversion_extendeddiff') |
145 self.trUtf8('Show difference (extended)'), |
|
146 0, 0, self, 'subversion_extendeddiff') |
139 self.svnExtDiffAct.setStatusTip(self.trUtf8( |
147 self.svnExtDiffAct.setStatusTip(self.trUtf8( |
140 'Show the difference of revisions of the project to the repository' |
148 'Show the difference of revisions of the project to the repository' |
141 )) |
149 )) |
142 self.svnExtDiffAct.setWhatsThis(self.trUtf8( |
150 self.svnExtDiffAct.setWhatsThis(self.trUtf8( |
143 """<b>Show difference (extended)</b>""" |
151 """<b>Show difference (extended)</b>""" |
144 """<p>This shows the difference of selectable revisions of the project.</p>""" |
152 """<p>This shows the difference of selectable revisions of""" |
|
153 """ the project.</p>""" |
145 )) |
154 )) |
146 self.svnExtDiffAct.triggered[()].connect(self.__svnExtendedDiff) |
155 self.svnExtDiffAct.triggered[()].connect(self.__svnExtendedDiff) |
147 self.actions.append(self.svnExtDiffAct) |
156 self.actions.append(self.svnExtDiffAct) |
148 |
157 |
149 self.svnUrlDiffAct = E5Action(self.trUtf8('Show difference (URLs)'), |
158 self.svnUrlDiffAct = E5Action(self.trUtf8('Show difference (URLs)'), |
234 self.actions.append(self.vcsExportAct) |
243 self.actions.append(self.vcsExportAct) |
235 |
244 |
236 self.vcsPropsAct = E5Action(self.trUtf8('Command options'), |
245 self.vcsPropsAct = E5Action(self.trUtf8('Command options'), |
237 self.trUtf8('Command &options...'), 0, 0, self, |
246 self.trUtf8('Command &options...'), 0, 0, self, |
238 'subversion_options') |
247 'subversion_options') |
239 self.vcsPropsAct.setStatusTip(self.trUtf8('Show the VCS command options')) |
248 self.vcsPropsAct.setStatusTip(self.trUtf8( |
|
249 'Show the VCS command options')) |
240 self.vcsPropsAct.setWhatsThis(self.trUtf8( |
250 self.vcsPropsAct.setWhatsThis(self.trUtf8( |
241 """<b>Command options...</b>""" |
251 """<b>Command options...</b>""" |
242 """<p>This shows a dialog to edit the VCS command options.</p>""" |
252 """<p>This shows a dialog to edit the VCS command options.</p>""" |
243 )) |
253 )) |
244 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) |
254 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) |
265 self.vcsMergeAct.setStatusTip(self.trUtf8( |
275 self.vcsMergeAct.setStatusTip(self.trUtf8( |
266 'Merge changes of a tag/revision into the local project' |
276 'Merge changes of a tag/revision into the local project' |
267 )) |
277 )) |
268 self.vcsMergeAct.setWhatsThis(self.trUtf8( |
278 self.vcsMergeAct.setWhatsThis(self.trUtf8( |
269 """<b>Merge</b>""" |
279 """<b>Merge</b>""" |
270 """<p>This merges changes of a tag/revision into the local project.</p>""" |
280 """<p>This merges changes of a tag/revision into the local""" |
|
281 """ project.</p>""" |
271 )) |
282 )) |
272 self.vcsMergeAct.triggered[()].connect(self._vcsMerge) |
283 self.vcsMergeAct.triggered[()].connect(self._vcsMerge) |
273 self.actions.append(self.vcsMergeAct) |
284 self.actions.append(self.vcsMergeAct) |
274 |
285 |
275 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'), |
286 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'), |
292 self.vcsResolveAct.setStatusTip(self.trUtf8( |
303 self.vcsResolveAct.setStatusTip(self.trUtf8( |
293 'Mark all conflicts of the local project as resolved' |
304 'Mark all conflicts of the local project as resolved' |
294 )) |
305 )) |
295 self.vcsResolveAct.setWhatsThis(self.trUtf8( |
306 self.vcsResolveAct.setWhatsThis(self.trUtf8( |
296 """<b>Conflicts resolved</b>""" |
307 """<b>Conflicts resolved</b>""" |
297 """<p>This marks all conflicts of the local project as resolved.</p>""" |
308 """<p>This marks all conflicts of the local project as""" |
|
309 """ resolved.</p>""" |
298 )) |
310 )) |
299 self.vcsResolveAct.triggered[()].connect(self.__svnResolve) |
311 self.vcsResolveAct.triggered[()].connect(self.__svnResolve) |
300 self.actions.append(self.vcsResolveAct) |
312 self.actions.append(self.vcsResolveAct) |
301 |
313 |
302 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'), |
314 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'), |
410 self.svnRelocateAct.setStatusTip(self.trUtf8( |
422 self.svnRelocateAct.setStatusTip(self.trUtf8( |
411 'Relocate the working copy to a new repository URL' |
423 'Relocate the working copy to a new repository URL' |
412 )) |
424 )) |
413 self.svnRelocateAct.setWhatsThis(self.trUtf8( |
425 self.svnRelocateAct.setWhatsThis(self.trUtf8( |
414 """<b>Relocate</b>""" |
426 """<b>Relocate</b>""" |
415 """<p>This relocates the working copy to a new repository URL.</p>""" |
427 """<p>This relocates the working copy to a new repository""" |
|
428 """ URL.</p>""" |
416 )) |
429 )) |
417 self.svnRelocateAct.triggered[()].connect(self.__svnRelocate) |
430 self.svnRelocateAct.triggered[()].connect(self.__svnRelocate) |
418 self.actions.append(self.svnRelocateAct) |
431 self.actions.append(self.svnRelocateAct) |
419 |
432 |
420 self.svnRepoBrowserAct = E5Action(self.trUtf8('Repository Browser'), |
433 self.svnRepoBrowserAct = E5Action(self.trUtf8('Repository Browser'), |
437 self.svnConfigAct.setStatusTip(self.trUtf8( |
450 self.svnConfigAct.setStatusTip(self.trUtf8( |
438 'Show the configuration dialog with the Subversion page selected' |
451 'Show the configuration dialog with the Subversion page selected' |
439 )) |
452 )) |
440 self.svnConfigAct.setWhatsThis(self.trUtf8( |
453 self.svnConfigAct.setWhatsThis(self.trUtf8( |
441 """<b>Configure</b>""" |
454 """<b>Configure</b>""" |
442 """<p>Show the configuration dialog with the Subversion page selected.</p>""" |
455 """<p>Show the configuration dialog with the Subversion page""" |
|
456 """ selected.</p>""" |
443 )) |
457 )) |
444 self.svnConfigAct.triggered[()].connect(self.__svnConfigure) |
458 self.svnConfigAct.triggered[()].connect(self.__svnConfigure) |
445 self.actions.append(self.svnConfigAct) |
459 self.actions.append(self.svnConfigAct) |
446 |
460 |
447 def initMenu(self, menu): |
461 def initMenu(self, menu): |
541 """ |
555 """ |
542 self.vcs.svnListTagBranch(self.project.ppath, False) |
556 self.vcs.svnListTagBranch(self.project.ppath, False) |
543 |
557 |
544 def __svnExtendedDiff(self): |
558 def __svnExtendedDiff(self): |
545 """ |
559 """ |
546 Private slot used to perform a svn diff with the selection of revisions. |
560 Private slot used to perform a svn diff with the selection of |
|
561 revisions. |
547 """ |
562 """ |
548 self.vcs.svnExtendedDiff(self.project.ppath) |
563 self.vcs.svnExtendedDiff(self.project.ppath) |
549 |
564 |
550 def __svnUrlDiff(self): |
565 def __svnUrlDiff(self): |
551 """ |
566 """ |
552 Private slot used to perform a svn diff with the selection of repository URLs. |
567 Private slot used to perform a svn diff with the selection of |
|
568 repository URLs. |
553 """ |
569 """ |
554 self.vcs.svnUrlDiff(self.project.ppath) |
570 self.vcs.svnUrlDiff(self.project.ppath) |
555 |
571 |
556 def __svnLogBrowser(self): |
572 def __svnLogBrowser(self): |
557 """ |
573 """ |
579 |
595 |
580 def __svnConfigure(self): |
596 def __svnConfigure(self): |
581 """ |
597 """ |
582 Private slot to open the configuration dialog. |
598 Private slot to open the configuration dialog. |
583 """ |
599 """ |
584 e5App().getObject("UserInterface").showPreferences("zzz_subversionPage") |
600 e5App().getObject("UserInterface")\ |
|
601 .showPreferences("zzz_subversionPage") |
585 |
602 |
586 def __svnChangeLists(self): |
603 def __svnChangeLists(self): |
587 """ |
604 """ |
588 Private slot used to show a list of change lists. |
605 Private slot used to show a list of change lists. |
589 """ |
606 """ |