122 """ |
122 """ |
123 Public method to generate the action objects. |
123 Public method to generate the action objects. |
124 """ |
124 """ |
125 self.vcsNewAct = E5Action( |
125 self.vcsNewAct = E5Action( |
126 self.tr('New from repository'), |
126 self.tr('New from repository'), |
127 UI.PixmapCache.getIcon("vcsCheckout.png"), |
127 UI.PixmapCache.getIcon("vcsCheckout"), |
128 self.tr('&New from repository...'), 0, 0, |
128 self.tr('&New from repository...'), 0, 0, |
129 self, 'mercurial_new') |
129 self, 'mercurial_new') |
130 self.vcsNewAct.setStatusTip(self.tr( |
130 self.vcsNewAct.setStatusTip(self.tr( |
131 'Create (clone) a new project from a Mercurial repository' |
131 'Create (clone) a new project from a Mercurial repository' |
132 )) |
132 )) |
138 self.vcsNewAct.triggered.connect(self._vcsCheckout) |
138 self.vcsNewAct.triggered.connect(self._vcsCheckout) |
139 self.actions.append(self.vcsNewAct) |
139 self.actions.append(self.vcsNewAct) |
140 |
140 |
141 self.hgIncomingAct = E5Action( |
141 self.hgIncomingAct = E5Action( |
142 self.tr('Show incoming log'), |
142 self.tr('Show incoming log'), |
143 UI.PixmapCache.getIcon("vcsUpdate.png"), |
143 UI.PixmapCache.getIcon("vcsUpdate"), |
144 self.tr('Show incoming log'), |
144 self.tr('Show incoming log'), |
145 0, 0, self, 'mercurial_incoming') |
145 0, 0, self, 'mercurial_incoming') |
146 self.hgIncomingAct.setStatusTip(self.tr( |
146 self.hgIncomingAct.setStatusTip(self.tr( |
147 'Show the log of incoming changes' |
147 'Show the log of incoming changes' |
148 )) |
148 )) |
154 self.hgIncomingAct.triggered.connect(self.__hgIncoming) |
154 self.hgIncomingAct.triggered.connect(self.__hgIncoming) |
155 self.actions.append(self.hgIncomingAct) |
155 self.actions.append(self.hgIncomingAct) |
156 |
156 |
157 self.hgPullAct = E5Action( |
157 self.hgPullAct = E5Action( |
158 self.tr('Pull changes'), |
158 self.tr('Pull changes'), |
159 UI.PixmapCache.getIcon("vcsUpdate.png"), |
159 UI.PixmapCache.getIcon("vcsUpdate"), |
160 self.tr('Pull changes'), |
160 self.tr('Pull changes'), |
161 0, 0, self, 'mercurial_pull') |
161 0, 0, self, 'mercurial_pull') |
162 self.hgPullAct.setStatusTip(self.tr( |
162 self.hgPullAct.setStatusTip(self.tr( |
163 'Pull changes from a remote repository' |
163 'Pull changes from a remote repository' |
164 )) |
164 )) |
170 self.hgPullAct.triggered.connect(self.__hgPull) |
170 self.hgPullAct.triggered.connect(self.__hgPull) |
171 self.actions.append(self.hgPullAct) |
171 self.actions.append(self.hgPullAct) |
172 |
172 |
173 self.vcsUpdateAct = E5Action( |
173 self.vcsUpdateAct = E5Action( |
174 self.tr('Update from repository'), |
174 self.tr('Update from repository'), |
175 UI.PixmapCache.getIcon("vcsUpdate.png"), |
175 UI.PixmapCache.getIcon("vcsUpdate"), |
176 self.tr('&Update from repository'), 0, 0, self, |
176 self.tr('&Update from repository'), 0, 0, self, |
177 'mercurial_update') |
177 'mercurial_update') |
178 self.vcsUpdateAct.setStatusTip(self.tr( |
178 self.vcsUpdateAct.setStatusTip(self.tr( |
179 'Update the local project from the Mercurial repository' |
179 'Update the local project from the Mercurial repository' |
180 )) |
180 )) |
186 self.vcsUpdateAct.triggered.connect(self._vcsUpdate) |
186 self.vcsUpdateAct.triggered.connect(self._vcsUpdate) |
187 self.actions.append(self.vcsUpdateAct) |
187 self.actions.append(self.vcsUpdateAct) |
188 |
188 |
189 self.vcsCommitAct = E5Action( |
189 self.vcsCommitAct = E5Action( |
190 self.tr('Commit changes to repository'), |
190 self.tr('Commit changes to repository'), |
191 UI.PixmapCache.getIcon("vcsCommit.png"), |
191 UI.PixmapCache.getIcon("vcsCommit"), |
192 self.tr('&Commit changes to repository...'), 0, 0, self, |
192 self.tr('&Commit changes to repository...'), 0, 0, self, |
193 'mercurial_commit') |
193 'mercurial_commit') |
194 self.vcsCommitAct.setStatusTip(self.tr( |
194 self.vcsCommitAct.setStatusTip(self.tr( |
195 'Commit changes to the local project to the Mercurial repository' |
195 'Commit changes to the local project to the Mercurial repository' |
196 )) |
196 )) |
202 self.vcsCommitAct.triggered.connect(self._vcsCommit) |
202 self.vcsCommitAct.triggered.connect(self._vcsCommit) |
203 self.actions.append(self.vcsCommitAct) |
203 self.actions.append(self.vcsCommitAct) |
204 |
204 |
205 self.hgOutgoingAct = E5Action( |
205 self.hgOutgoingAct = E5Action( |
206 self.tr('Show outgoing log'), |
206 self.tr('Show outgoing log'), |
207 UI.PixmapCache.getIcon("vcsCommit.png"), |
207 UI.PixmapCache.getIcon("vcsCommit"), |
208 self.tr('Show outgoing log'), |
208 self.tr('Show outgoing log'), |
209 0, 0, self, 'mercurial_outgoing') |
209 0, 0, self, 'mercurial_outgoing') |
210 self.hgOutgoingAct.setStatusTip(self.tr( |
210 self.hgOutgoingAct.setStatusTip(self.tr( |
211 'Show the log of outgoing changes' |
211 'Show the log of outgoing changes' |
212 )) |
212 )) |
218 self.hgOutgoingAct.triggered.connect(self.__hgOutgoing) |
218 self.hgOutgoingAct.triggered.connect(self.__hgOutgoing) |
219 self.actions.append(self.hgOutgoingAct) |
219 self.actions.append(self.hgOutgoingAct) |
220 |
220 |
221 self.hgPushAct = E5Action( |
221 self.hgPushAct = E5Action( |
222 self.tr('Push changes'), |
222 self.tr('Push changes'), |
223 UI.PixmapCache.getIcon("vcsCommit.png"), |
223 UI.PixmapCache.getIcon("vcsCommit"), |
224 self.tr('Push changes'), |
224 self.tr('Push changes'), |
225 0, 0, self, 'mercurial_push') |
225 0, 0, self, 'mercurial_push') |
226 self.hgPushAct.setStatusTip(self.tr( |
226 self.hgPushAct.setStatusTip(self.tr( |
227 'Push changes to a remote repository' |
227 'Push changes to a remote repository' |
228 )) |
228 )) |
234 self.hgPushAct.triggered.connect(self.__hgPush) |
234 self.hgPushAct.triggered.connect(self.__hgPush) |
235 self.actions.append(self.hgPushAct) |
235 self.actions.append(self.hgPushAct) |
236 |
236 |
237 self.hgPushForcedAct = E5Action( |
237 self.hgPushForcedAct = E5Action( |
238 self.tr('Push changes (force)'), |
238 self.tr('Push changes (force)'), |
239 UI.PixmapCache.getIcon("vcsCommit.png"), |
239 UI.PixmapCache.getIcon("vcsCommit"), |
240 self.tr('Push changes (force)'), |
240 self.tr('Push changes (force)'), |
241 0, 0, self, 'mercurial_push_forced') |
241 0, 0, self, 'mercurial_push_forced') |
242 self.hgPushForcedAct.setStatusTip(self.tr( |
242 self.hgPushForcedAct.setStatusTip(self.tr( |
243 'Push changes to a remote repository with force option' |
243 'Push changes to a remote repository with force option' |
244 )) |
244 )) |
250 self.hgPushForcedAct.triggered.connect(self.__hgPushForced) |
250 self.hgPushForcedAct.triggered.connect(self.__hgPushForced) |
251 self.actions.append(self.hgPushForcedAct) |
251 self.actions.append(self.hgPushForcedAct) |
252 |
252 |
253 self.vcsExportAct = E5Action( |
253 self.vcsExportAct = E5Action( |
254 self.tr('Export from repository'), |
254 self.tr('Export from repository'), |
255 UI.PixmapCache.getIcon("vcsExport.png"), |
255 UI.PixmapCache.getIcon("vcsExport"), |
256 self.tr('&Export from repository...'), |
256 self.tr('&Export from repository...'), |
257 0, 0, self, 'mercurial_export_repo') |
257 0, 0, self, 'mercurial_export_repo') |
258 self.vcsExportAct.setStatusTip(self.tr( |
258 self.vcsExportAct.setStatusTip(self.tr( |
259 'Export a project from the repository' |
259 'Export a project from the repository' |
260 )) |
260 )) |
265 self.vcsExportAct.triggered.connect(self._vcsExport) |
265 self.vcsExportAct.triggered.connect(self._vcsExport) |
266 self.actions.append(self.vcsExportAct) |
266 self.actions.append(self.vcsExportAct) |
267 |
267 |
268 self.hgLogBrowserAct = E5Action( |
268 self.hgLogBrowserAct = E5Action( |
269 self.tr('Show log browser'), |
269 self.tr('Show log browser'), |
270 UI.PixmapCache.getIcon("vcsLog.png"), |
270 UI.PixmapCache.getIcon("vcsLog"), |
271 self.tr('Show log browser'), |
271 self.tr('Show log browser'), |
272 0, 0, self, 'mercurial_log_browser') |
272 0, 0, self, 'mercurial_log_browser') |
273 self.hgLogBrowserAct.setStatusTip(self.tr( |
273 self.hgLogBrowserAct.setStatusTip(self.tr( |
274 'Show a dialog to browse the log of the local project' |
274 'Show a dialog to browse the log of the local project' |
275 )) |
275 )) |
282 self.hgLogBrowserAct.triggered.connect(self._vcsLogBrowser) |
282 self.hgLogBrowserAct.triggered.connect(self._vcsLogBrowser) |
283 self.actions.append(self.hgLogBrowserAct) |
283 self.actions.append(self.hgLogBrowserAct) |
284 |
284 |
285 self.vcsDiffAct = E5Action( |
285 self.vcsDiffAct = E5Action( |
286 self.tr('Show differences'), |
286 self.tr('Show differences'), |
287 UI.PixmapCache.getIcon("vcsDiff.png"), |
287 UI.PixmapCache.getIcon("vcsDiff"), |
288 self.tr('Show &difference'), |
288 self.tr('Show &difference'), |
289 0, 0, self, 'mercurial_diff') |
289 0, 0, self, 'mercurial_diff') |
290 self.vcsDiffAct.setStatusTip(self.tr( |
290 self.vcsDiffAct.setStatusTip(self.tr( |
291 'Show the difference of the local project to the repository' |
291 'Show the difference of the local project to the repository' |
292 )) |
292 )) |
298 self.vcsDiffAct.triggered.connect(self._vcsDiff) |
298 self.vcsDiffAct.triggered.connect(self._vcsDiff) |
299 self.actions.append(self.vcsDiffAct) |
299 self.actions.append(self.vcsDiffAct) |
300 |
300 |
301 self.hgExtDiffAct = E5Action( |
301 self.hgExtDiffAct = E5Action( |
302 self.tr('Show differences (extended)'), |
302 self.tr('Show differences (extended)'), |
303 UI.PixmapCache.getIcon("vcsDiff.png"), |
303 UI.PixmapCache.getIcon("vcsDiff"), |
304 self.tr('Show differences (extended)'), |
304 self.tr('Show differences (extended)'), |
305 0, 0, self, 'mercurial_extendeddiff') |
305 0, 0, self, 'mercurial_extendeddiff') |
306 self.hgExtDiffAct.setStatusTip(self.tr( |
306 self.hgExtDiffAct.setStatusTip(self.tr( |
307 'Show the difference of revisions of the project to the repository' |
307 'Show the difference of revisions of the project to the repository' |
308 )) |
308 )) |
314 self.hgExtDiffAct.triggered.connect(self.__hgExtendedDiff) |
314 self.hgExtDiffAct.triggered.connect(self.__hgExtendedDiff) |
315 self.actions.append(self.hgExtDiffAct) |
315 self.actions.append(self.hgExtDiffAct) |
316 |
316 |
317 self.vcsStatusAct = E5Action( |
317 self.vcsStatusAct = E5Action( |
318 self.tr('Show status'), |
318 self.tr('Show status'), |
319 UI.PixmapCache.getIcon("vcsStatus.png"), |
319 UI.PixmapCache.getIcon("vcsStatus"), |
320 self.tr('Show &status...'), |
320 self.tr('Show &status...'), |
321 0, 0, self, 'mercurial_status') |
321 0, 0, self, 'mercurial_status') |
322 self.vcsStatusAct.setStatusTip(self.tr( |
322 self.vcsStatusAct.setStatusTip(self.tr( |
323 'Show the status of the local project' |
323 'Show the status of the local project' |
324 )) |
324 )) |
329 self.vcsStatusAct.triggered.connect(self._vcsStatus) |
329 self.vcsStatusAct.triggered.connect(self._vcsStatus) |
330 self.actions.append(self.vcsStatusAct) |
330 self.actions.append(self.vcsStatusAct) |
331 |
331 |
332 self.hgSummaryAct = E5Action( |
332 self.hgSummaryAct = E5Action( |
333 self.tr('Show Summary'), |
333 self.tr('Show Summary'), |
334 UI.PixmapCache.getIcon("vcsSummary.png"), |
334 UI.PixmapCache.getIcon("vcsSummary"), |
335 self.tr('Show summary...'), |
335 self.tr('Show summary...'), |
336 0, 0, self, 'mercurial_summary') |
336 0, 0, self, 'mercurial_summary') |
337 self.hgSummaryAct.setStatusTip(self.tr( |
337 self.hgSummaryAct.setStatusTip(self.tr( |
338 'Show summary information of the working directory status' |
338 'Show summary information of the working directory status' |
339 )) |
339 )) |
387 self.hgTipAct.triggered.connect(self.__hgTip) |
387 self.hgTipAct.triggered.connect(self.__hgTip) |
388 self.actions.append(self.hgTipAct) |
388 self.actions.append(self.hgTipAct) |
389 |
389 |
390 self.vcsRevertAct = E5Action( |
390 self.vcsRevertAct = E5Action( |
391 self.tr('Revert changes'), |
391 self.tr('Revert changes'), |
392 UI.PixmapCache.getIcon("vcsRevert.png"), |
392 UI.PixmapCache.getIcon("vcsRevert"), |
393 self.tr('Re&vert changes'), |
393 self.tr('Re&vert changes'), |
394 0, 0, self, 'mercurial_revert') |
394 0, 0, self, 'mercurial_revert') |
395 self.vcsRevertAct.setStatusTip(self.tr( |
395 self.vcsRevertAct.setStatusTip(self.tr( |
396 'Revert all changes made to the local project' |
396 'Revert all changes made to the local project' |
397 )) |
397 )) |
402 self.vcsRevertAct.triggered.connect(self.__hgRevert) |
402 self.vcsRevertAct.triggered.connect(self.__hgRevert) |
403 self.actions.append(self.vcsRevertAct) |
403 self.actions.append(self.vcsRevertAct) |
404 |
404 |
405 self.vcsMergeAct = E5Action( |
405 self.vcsMergeAct = E5Action( |
406 self.tr('Merge'), |
406 self.tr('Merge'), |
407 UI.PixmapCache.getIcon("vcsMerge.png"), |
407 UI.PixmapCache.getIcon("vcsMerge"), |
408 self.tr('Mer&ge changes...'), |
408 self.tr('Mer&ge changes...'), |
409 0, 0, self, 'mercurial_merge') |
409 0, 0, self, 'mercurial_merge') |
410 self.vcsMergeAct.setStatusTip(self.tr( |
410 self.vcsMergeAct.setStatusTip(self.tr( |
411 'Merge changes of a revision into the local project' |
411 'Merge changes of a revision into the local project' |
412 )) |
412 )) |
447 self.hgAbortMergeAct.triggered.connect(self.__hgAbortMerge) |
447 self.hgAbortMergeAct.triggered.connect(self.__hgAbortMerge) |
448 self.actions.append(self.hgAbortMergeAct) |
448 self.actions.append(self.hgAbortMergeAct) |
449 |
449 |
450 self.hgReMergeAct = E5Action( |
450 self.hgReMergeAct = E5Action( |
451 self.tr('Re-Merge'), |
451 self.tr('Re-Merge'), |
452 UI.PixmapCache.getIcon("vcsMerge.png"), |
452 UI.PixmapCache.getIcon("vcsMerge"), |
453 self.tr('Re-Merge'), |
453 self.tr('Re-Merge'), |
454 0, 0, self, 'mercurial_remerge') |
454 0, 0, self, 'mercurial_remerge') |
455 self.hgReMergeAct.setStatusTip(self.tr( |
455 self.hgReMergeAct.setStatusTip(self.tr( |
456 'Re-Merge all conflicting, unresolved files of the project' |
456 'Re-Merge all conflicting, unresolved files of the project' |
457 )) |
457 )) |
508 self.hgUnresolveAct.triggered.connect(self.__hgUnresolved) |
508 self.hgUnresolveAct.triggered.connect(self.__hgUnresolved) |
509 self.actions.append(self.hgUnresolveAct) |
509 self.actions.append(self.hgUnresolveAct) |
510 |
510 |
511 self.vcsTagAct = E5Action( |
511 self.vcsTagAct = E5Action( |
512 self.tr('Tag in repository'), |
512 self.tr('Tag in repository'), |
513 UI.PixmapCache.getIcon("vcsTag.png"), |
513 UI.PixmapCache.getIcon("vcsTag"), |
514 self.tr('&Tag in repository...'), |
514 self.tr('&Tag in repository...'), |
515 0, 0, self, 'mercurial_tag') |
515 0, 0, self, 'mercurial_tag') |
516 self.vcsTagAct.setStatusTip(self.tr( |
516 self.vcsTagAct.setStatusTip(self.tr( |
517 'Tag the local project in the repository' |
517 'Tag the local project in the repository' |
518 )) |
518 )) |
551 self.hgBranchListAct.triggered.connect(self.__hgBranchList) |
551 self.hgBranchListAct.triggered.connect(self.__hgBranchList) |
552 self.actions.append(self.hgBranchListAct) |
552 self.actions.append(self.hgBranchListAct) |
553 |
553 |
554 self.hgBranchAct = E5Action( |
554 self.hgBranchAct = E5Action( |
555 self.tr('Create branch'), |
555 self.tr('Create branch'), |
556 UI.PixmapCache.getIcon("vcsBranch.png"), |
556 UI.PixmapCache.getIcon("vcsBranch"), |
557 self.tr('Create &branch...'), |
557 self.tr('Create &branch...'), |
558 0, 0, self, 'mercurial_branch') |
558 0, 0, self, 'mercurial_branch') |
559 self.hgBranchAct.setStatusTip(self.tr( |
559 self.hgBranchAct.setStatusTip(self.tr( |
560 'Create a new branch for the local project in the repository' |
560 'Create a new branch for the local project in the repository' |
561 )) |
561 )) |
567 self.hgBranchAct.triggered.connect(self.__hgBranch) |
567 self.hgBranchAct.triggered.connect(self.__hgBranch) |
568 self.actions.append(self.hgBranchAct) |
568 self.actions.append(self.hgBranchAct) |
569 |
569 |
570 self.hgPushBranchAct = E5Action( |
570 self.hgPushBranchAct = E5Action( |
571 self.tr('Push new branch'), |
571 self.tr('Push new branch'), |
572 UI.PixmapCache.getIcon("vcsCommit.png"), |
572 UI.PixmapCache.getIcon("vcsCommit"), |
573 self.tr('Push new branch'), |
573 self.tr('Push new branch'), |
574 0, 0, self, 'mercurial_push_branch') |
574 0, 0, self, 'mercurial_push_branch') |
575 self.hgPushBranchAct.setStatusTip(self.tr( |
575 self.hgPushBranchAct.setStatusTip(self.tr( |
576 'Push the current branch of the local project as a new named' |
576 'Push the current branch of the local project as a new named' |
577 ' branch' |
577 ' branch' |
613 self.hgShowBranchAct.triggered.connect(self.__hgShowBranch) |
613 self.hgShowBranchAct.triggered.connect(self.__hgShowBranch) |
614 self.actions.append(self.hgShowBranchAct) |
614 self.actions.append(self.hgShowBranchAct) |
615 |
615 |
616 self.vcsSwitchAct = E5Action( |
616 self.vcsSwitchAct = E5Action( |
617 self.tr('Switch'), |
617 self.tr('Switch'), |
618 UI.PixmapCache.getIcon("vcsSwitch.png"), |
618 UI.PixmapCache.getIcon("vcsSwitch"), |
619 self.tr('S&witch...'), |
619 self.tr('S&witch...'), |
620 0, 0, self, 'mercurial_switch') |
620 0, 0, self, 'mercurial_switch') |
621 self.vcsSwitchAct.setStatusTip(self.tr( |
621 self.vcsSwitchAct.setStatusTip(self.tr( |
622 'Switch the working directory to another revision' |
622 'Switch the working directory to another revision' |
623 )) |
623 )) |
788 self.hgCreateIgnoreAct.triggered.connect(self.__hgCreateIgnore) |
788 self.hgCreateIgnoreAct.triggered.connect(self.__hgCreateIgnore) |
789 self.actions.append(self.hgCreateIgnoreAct) |
789 self.actions.append(self.hgCreateIgnoreAct) |
790 |
790 |
791 self.hgBundleAct = E5Action( |
791 self.hgBundleAct = E5Action( |
792 self.tr('Create changegroup'), |
792 self.tr('Create changegroup'), |
793 UI.PixmapCache.getIcon("vcsCreateChangegroup.png"), |
793 UI.PixmapCache.getIcon("vcsCreateChangegroup"), |
794 self.tr('Create changegroup...'), |
794 self.tr('Create changegroup...'), |
795 0, 0, self, 'mercurial_bundle') |
795 0, 0, self, 'mercurial_bundle') |
796 self.hgBundleAct.setStatusTip(self.tr( |
796 self.hgBundleAct.setStatusTip(self.tr( |
797 'Create changegroup file collecting changesets' |
797 'Create changegroup file collecting changesets' |
798 )) |
798 )) |
804 self.hgBundleAct.triggered.connect(self.__hgBundle) |
804 self.hgBundleAct.triggered.connect(self.__hgBundle) |
805 self.actions.append(self.hgBundleAct) |
805 self.actions.append(self.hgBundleAct) |
806 |
806 |
807 self.hgPreviewBundleAct = E5Action( |
807 self.hgPreviewBundleAct = E5Action( |
808 self.tr('Preview changegroup'), |
808 self.tr('Preview changegroup'), |
809 UI.PixmapCache.getIcon("vcsPreviewChangegroup.png"), |
809 UI.PixmapCache.getIcon("vcsPreviewChangegroup"), |
810 self.tr('Preview changegroup...'), |
810 self.tr('Preview changegroup...'), |
811 0, 0, self, 'mercurial_preview_bundle') |
811 0, 0, self, 'mercurial_preview_bundle') |
812 self.hgPreviewBundleAct.setStatusTip(self.tr( |
812 self.hgPreviewBundleAct.setStatusTip(self.tr( |
813 'Preview a changegroup file containing a collection of changesets' |
813 'Preview a changegroup file containing a collection of changesets' |
814 )) |
814 )) |
820 self.hgPreviewBundleAct.triggered.connect(self.__hgPreviewBundle) |
820 self.hgPreviewBundleAct.triggered.connect(self.__hgPreviewBundle) |
821 self.actions.append(self.hgPreviewBundleAct) |
821 self.actions.append(self.hgPreviewBundleAct) |
822 |
822 |
823 self.hgUnbundleAct = E5Action( |
823 self.hgUnbundleAct = E5Action( |
824 self.tr('Apply changegroups'), |
824 self.tr('Apply changegroups'), |
825 UI.PixmapCache.getIcon("vcsApplyChangegroup.png"), |
825 UI.PixmapCache.getIcon("vcsApplyChangegroup"), |
826 self.tr('Apply changegroups...'), |
826 self.tr('Apply changegroups...'), |
827 0, 0, self, 'mercurial_unbundle') |
827 0, 0, self, 'mercurial_unbundle') |
828 self.hgUnbundleAct.setStatusTip(self.tr( |
828 self.hgUnbundleAct.setStatusTip(self.tr( |
829 'Apply one or several changegroup files' |
829 'Apply one or several changegroup files' |
830 )) |
830 )) |
947 self.hgServeAct.triggered.connect(self.__hgServe) |
947 self.hgServeAct.triggered.connect(self.__hgServe) |
948 self.actions.append(self.hgServeAct) |
948 self.actions.append(self.hgServeAct) |
949 |
949 |
950 self.hgImportAct = E5Action( |
950 self.hgImportAct = E5Action( |
951 self.tr('Import Patch'), |
951 self.tr('Import Patch'), |
952 UI.PixmapCache.getIcon("vcsImportPatch.png"), |
952 UI.PixmapCache.getIcon("vcsImportPatch"), |
953 self.tr('Import Patch...'), |
953 self.tr('Import Patch...'), |
954 0, 0, self, 'mercurial_import') |
954 0, 0, self, 'mercurial_import') |
955 self.hgImportAct.setStatusTip(self.tr( |
955 self.hgImportAct.setStatusTip(self.tr( |
956 'Import a patch from a patch file' |
956 'Import a patch from a patch file' |
957 )) |
957 )) |
963 self.hgImportAct.triggered.connect(self.__hgImport) |
963 self.hgImportAct.triggered.connect(self.__hgImport) |
964 self.actions.append(self.hgImportAct) |
964 self.actions.append(self.hgImportAct) |
965 |
965 |
966 self.hgExportAct = E5Action( |
966 self.hgExportAct = E5Action( |
967 self.tr('Export Patches'), |
967 self.tr('Export Patches'), |
968 UI.PixmapCache.getIcon("vcsExportPatch.png"), |
968 UI.PixmapCache.getIcon("vcsExportPatch"), |
969 self.tr('Export Patches...'), |
969 self.tr('Export Patches...'), |
970 0, 0, self, 'mercurial_export') |
970 0, 0, self, 'mercurial_export') |
971 self.hgExportAct.setStatusTip(self.tr( |
971 self.hgExportAct.setStatusTip(self.tr( |
972 'Export revisions to patch files' |
972 'Export revisions to patch files' |
973 )) |
973 )) |
992 self.hgPhaseAct.triggered.connect(self.__hgPhase) |
992 self.hgPhaseAct.triggered.connect(self.__hgPhase) |
993 self.actions.append(self.hgPhaseAct) |
993 self.actions.append(self.hgPhaseAct) |
994 |
994 |
995 self.hgGraftAct = E5Action( |
995 self.hgGraftAct = E5Action( |
996 self.tr('Copy Changesets'), |
996 self.tr('Copy Changesets'), |
997 UI.PixmapCache.getIcon("vcsGraft.png"), |
997 UI.PixmapCache.getIcon("vcsGraft"), |
998 self.tr('Copy Changesets'), |
998 self.tr('Copy Changesets'), |
999 0, 0, self, 'mercurial_graft') |
999 0, 0, self, 'mercurial_graft') |
1000 self.hgGraftAct.setStatusTip(self.tr( |
1000 self.hgGraftAct.setStatusTip(self.tr( |
1001 'Copies changesets from another branch' |
1001 'Copies changesets from another branch' |
1002 )) |
1002 )) |
1053 self.hgGraftAbortAct.triggered.connect(self.__hgGraftAbort) |
1053 self.hgGraftAbortAct.triggered.connect(self.__hgGraftAbort) |
1054 self.actions.append(self.hgGraftAbortAct) |
1054 self.actions.append(self.hgGraftAbortAct) |
1055 |
1055 |
1056 self.hgAddSubrepoAct = E5Action( |
1056 self.hgAddSubrepoAct = E5Action( |
1057 self.tr('Add'), |
1057 self.tr('Add'), |
1058 UI.PixmapCache.getIcon("vcsAdd.png"), |
1058 UI.PixmapCache.getIcon("vcsAdd"), |
1059 self.tr('Add...'), |
1059 self.tr('Add...'), |
1060 0, 0, self, 'mercurial_add_subrepo') |
1060 0, 0, self, 'mercurial_add_subrepo') |
1061 self.hgAddSubrepoAct.setStatusTip(self.tr( |
1061 self.hgAddSubrepoAct.setStatusTip(self.tr( |
1062 'Add a sub-repository' |
1062 'Add a sub-repository' |
1063 )) |
1063 )) |
1068 self.hgAddSubrepoAct.triggered.connect(self.__hgAddSubrepository) |
1068 self.hgAddSubrepoAct.triggered.connect(self.__hgAddSubrepository) |
1069 self.actions.append(self.hgAddSubrepoAct) |
1069 self.actions.append(self.hgAddSubrepoAct) |
1070 |
1070 |
1071 self.hgRemoveSubreposAct = E5Action( |
1071 self.hgRemoveSubreposAct = E5Action( |
1072 self.tr('Remove'), |
1072 self.tr('Remove'), |
1073 UI.PixmapCache.getIcon("vcsRemove.png"), |
1073 UI.PixmapCache.getIcon("vcsRemove"), |
1074 self.tr('Remove...'), |
1074 self.tr('Remove...'), |
1075 0, 0, self, 'mercurial_remove_subrepos') |
1075 0, 0, self, 'mercurial_remove_subrepos') |
1076 self.hgRemoveSubreposAct.setStatusTip(self.tr( |
1076 self.hgRemoveSubreposAct.setStatusTip(self.tr( |
1077 'Remove sub-repositories' |
1077 'Remove sub-repositories' |
1078 )) |
1078 )) |
1084 self.__hgRemoveSubrepositories) |
1084 self.__hgRemoveSubrepositories) |
1085 self.actions.append(self.hgRemoveSubreposAct) |
1085 self.actions.append(self.hgRemoveSubreposAct) |
1086 |
1086 |
1087 self.hgArchiveAct = E5Action( |
1087 self.hgArchiveAct = E5Action( |
1088 self.tr('Create unversioned archive'), |
1088 self.tr('Create unversioned archive'), |
1089 UI.PixmapCache.getIcon("vcsExport.png"), |
1089 UI.PixmapCache.getIcon("vcsExport"), |
1090 self.tr('Create unversioned archive...'), |
1090 self.tr('Create unversioned archive...'), |
1091 0, 0, self, 'mercurial_archive') |
1091 0, 0, self, 'mercurial_archive') |
1092 self.hgArchiveAct.setStatusTip(self.tr( |
1092 self.hgArchiveAct.setStatusTip(self.tr( |
1093 'Create an unversioned archive from the repository' |
1093 'Create an unversioned archive from the repository' |
1094 )) |
1094 )) |
1100 self.hgArchiveAct.triggered.connect(self.__hgArchive) |
1100 self.hgArchiveAct.triggered.connect(self.__hgArchive) |
1101 self.actions.append(self.hgArchiveAct) |
1101 self.actions.append(self.hgArchiveAct) |
1102 |
1102 |
1103 self.hgBookmarksListAct = E5Action( |
1103 self.hgBookmarksListAct = E5Action( |
1104 self.tr('List bookmarks'), |
1104 self.tr('List bookmarks'), |
1105 UI.PixmapCache.getIcon("listBookmarks.png"), |
1105 UI.PixmapCache.getIcon("listBookmarks"), |
1106 self.tr('List bookmarks...'), |
1106 self.tr('List bookmarks...'), |
1107 0, 0, self, 'mercurial_list_bookmarks') |
1107 0, 0, self, 'mercurial_list_bookmarks') |
1108 self.hgBookmarksListAct.setStatusTip(self.tr( |
1108 self.hgBookmarksListAct.setStatusTip(self.tr( |
1109 'List bookmarks of the project' |
1109 'List bookmarks of the project' |
1110 )) |
1110 )) |
1115 self.hgBookmarksListAct.triggered.connect(self.__hgBookmarksList) |
1115 self.hgBookmarksListAct.triggered.connect(self.__hgBookmarksList) |
1116 self.actions.append(self.hgBookmarksListAct) |
1116 self.actions.append(self.hgBookmarksListAct) |
1117 |
1117 |
1118 self.hgBookmarkDefineAct = E5Action( |
1118 self.hgBookmarkDefineAct = E5Action( |
1119 self.tr('Define bookmark'), |
1119 self.tr('Define bookmark'), |
1120 UI.PixmapCache.getIcon("addBookmark.png"), |
1120 UI.PixmapCache.getIcon("addBookmark"), |
1121 self.tr('Define bookmark...'), |
1121 self.tr('Define bookmark...'), |
1122 0, 0, self, 'mercurial_define_bookmark') |
1122 0, 0, self, 'mercurial_define_bookmark') |
1123 self.hgBookmarkDefineAct.setStatusTip(self.tr( |
1123 self.hgBookmarkDefineAct.setStatusTip(self.tr( |
1124 'Define a bookmark for the project' |
1124 'Define a bookmark for the project' |
1125 )) |
1125 )) |
1130 self.hgBookmarkDefineAct.triggered.connect(self.__hgBookmarkDefine) |
1130 self.hgBookmarkDefineAct.triggered.connect(self.__hgBookmarkDefine) |
1131 self.actions.append(self.hgBookmarkDefineAct) |
1131 self.actions.append(self.hgBookmarkDefineAct) |
1132 |
1132 |
1133 self.hgBookmarkDeleteAct = E5Action( |
1133 self.hgBookmarkDeleteAct = E5Action( |
1134 self.tr('Delete bookmark'), |
1134 self.tr('Delete bookmark'), |
1135 UI.PixmapCache.getIcon("deleteBookmark.png"), |
1135 UI.PixmapCache.getIcon("deleteBookmark"), |
1136 self.tr('Delete bookmark...'), |
1136 self.tr('Delete bookmark...'), |
1137 0, 0, self, 'mercurial_delete_bookmark') |
1137 0, 0, self, 'mercurial_delete_bookmark') |
1138 self.hgBookmarkDeleteAct.setStatusTip(self.tr( |
1138 self.hgBookmarkDeleteAct.setStatusTip(self.tr( |
1139 'Delete a bookmark of the project' |
1139 'Delete a bookmark of the project' |
1140 )) |
1140 )) |
1145 self.hgBookmarkDeleteAct.triggered.connect(self.__hgBookmarkDelete) |
1145 self.hgBookmarkDeleteAct.triggered.connect(self.__hgBookmarkDelete) |
1146 self.actions.append(self.hgBookmarkDeleteAct) |
1146 self.actions.append(self.hgBookmarkDeleteAct) |
1147 |
1147 |
1148 self.hgBookmarkRenameAct = E5Action( |
1148 self.hgBookmarkRenameAct = E5Action( |
1149 self.tr('Rename bookmark'), |
1149 self.tr('Rename bookmark'), |
1150 UI.PixmapCache.getIcon("renameBookmark.png"), |
1150 UI.PixmapCache.getIcon("renameBookmark"), |
1151 self.tr('Rename bookmark...'), |
1151 self.tr('Rename bookmark...'), |
1152 0, 0, self, 'mercurial_rename_bookmark') |
1152 0, 0, self, 'mercurial_rename_bookmark') |
1153 self.hgBookmarkRenameAct.setStatusTip(self.tr( |
1153 self.hgBookmarkRenameAct.setStatusTip(self.tr( |
1154 'Rename a bookmark of the project' |
1154 'Rename a bookmark of the project' |
1155 )) |
1155 )) |
1160 self.hgBookmarkRenameAct.triggered.connect(self.__hgBookmarkRename) |
1160 self.hgBookmarkRenameAct.triggered.connect(self.__hgBookmarkRename) |
1161 self.actions.append(self.hgBookmarkRenameAct) |
1161 self.actions.append(self.hgBookmarkRenameAct) |
1162 |
1162 |
1163 self.hgBookmarkMoveAct = E5Action( |
1163 self.hgBookmarkMoveAct = E5Action( |
1164 self.tr('Move bookmark'), |
1164 self.tr('Move bookmark'), |
1165 UI.PixmapCache.getIcon("moveBookmark.png"), |
1165 UI.PixmapCache.getIcon("moveBookmark"), |
1166 self.tr('Move bookmark...'), |
1166 self.tr('Move bookmark...'), |
1167 0, 0, self, 'mercurial_move_bookmark') |
1167 0, 0, self, 'mercurial_move_bookmark') |
1168 self.hgBookmarkMoveAct.setStatusTip(self.tr( |
1168 self.hgBookmarkMoveAct.setStatusTip(self.tr( |
1169 'Move a bookmark of the project' |
1169 'Move a bookmark of the project' |
1170 )) |
1170 )) |
1176 self.hgBookmarkMoveAct.triggered.connect(self.__hgBookmarkMove) |
1176 self.hgBookmarkMoveAct.triggered.connect(self.__hgBookmarkMove) |
1177 self.actions.append(self.hgBookmarkMoveAct) |
1177 self.actions.append(self.hgBookmarkMoveAct) |
1178 |
1178 |
1179 self.hgBookmarkIncomingAct = E5Action( |
1179 self.hgBookmarkIncomingAct = E5Action( |
1180 self.tr('Show incoming bookmarks'), |
1180 self.tr('Show incoming bookmarks'), |
1181 UI.PixmapCache.getIcon("incomingBookmark.png"), |
1181 UI.PixmapCache.getIcon("incomingBookmark"), |
1182 self.tr('Show incoming bookmarks'), |
1182 self.tr('Show incoming bookmarks'), |
1183 0, 0, self, 'mercurial_incoming_bookmarks') |
1183 0, 0, self, 'mercurial_incoming_bookmarks') |
1184 self.hgBookmarkIncomingAct.setStatusTip(self.tr( |
1184 self.hgBookmarkIncomingAct.setStatusTip(self.tr( |
1185 'Show a list of incoming bookmarks' |
1185 'Show a list of incoming bookmarks' |
1186 )) |
1186 )) |
1193 self.__hgBookmarkIncoming) |
1193 self.__hgBookmarkIncoming) |
1194 self.actions.append(self.hgBookmarkIncomingAct) |
1194 self.actions.append(self.hgBookmarkIncomingAct) |
1195 |
1195 |
1196 self.hgBookmarkPullAct = E5Action( |
1196 self.hgBookmarkPullAct = E5Action( |
1197 self.tr('Pull bookmark'), |
1197 self.tr('Pull bookmark'), |
1198 UI.PixmapCache.getIcon("pullBookmark.png"), |
1198 UI.PixmapCache.getIcon("pullBookmark"), |
1199 self.tr('Pull bookmark'), |
1199 self.tr('Pull bookmark'), |
1200 0, 0, self, 'mercurial_pull_bookmark') |
1200 0, 0, self, 'mercurial_pull_bookmark') |
1201 self.hgBookmarkPullAct.setStatusTip(self.tr( |
1201 self.hgBookmarkPullAct.setStatusTip(self.tr( |
1202 'Pull a bookmark from a remote repository' |
1202 'Pull a bookmark from a remote repository' |
1203 )) |
1203 )) |
1209 self.hgBookmarkPullAct.triggered.connect(self.__hgBookmarkPull) |
1209 self.hgBookmarkPullAct.triggered.connect(self.__hgBookmarkPull) |
1210 self.actions.append(self.hgBookmarkPullAct) |
1210 self.actions.append(self.hgBookmarkPullAct) |
1211 |
1211 |
1212 self.hgBookmarkPullCurrentAct = E5Action( |
1212 self.hgBookmarkPullCurrentAct = E5Action( |
1213 self.tr('Pull current bookmark'), |
1213 self.tr('Pull current bookmark'), |
1214 UI.PixmapCache.getIcon("pullBookmark.png"), |
1214 UI.PixmapCache.getIcon("pullBookmark"), |
1215 self.tr('Pull current bookmark'), |
1215 self.tr('Pull current bookmark'), |
1216 0, 0, self, 'mercurial_pull_current_bookmark') |
1216 0, 0, self, 'mercurial_pull_current_bookmark') |
1217 self.hgBookmarkPullCurrentAct.setStatusTip(self.tr( |
1217 self.hgBookmarkPullCurrentAct.setStatusTip(self.tr( |
1218 'Pull the current bookmark from a remote repository' |
1218 'Pull the current bookmark from a remote repository' |
1219 )) |
1219 )) |
1225 self.hgBookmarkPullCurrentAct.triggered.connect( |
1225 self.hgBookmarkPullCurrentAct.triggered.connect( |
1226 self.__hgBookmarkPullCurrent) |
1226 self.__hgBookmarkPullCurrent) |
1227 |
1227 |
1228 self.hgBookmarkOutgoingAct = E5Action( |
1228 self.hgBookmarkOutgoingAct = E5Action( |
1229 self.tr('Show outgoing bookmarks'), |
1229 self.tr('Show outgoing bookmarks'), |
1230 UI.PixmapCache.getIcon("outgoingBookmark.png"), |
1230 UI.PixmapCache.getIcon("outgoingBookmark"), |
1231 self.tr('Show outgoing bookmarks'), |
1231 self.tr('Show outgoing bookmarks'), |
1232 0, 0, self, 'mercurial_outgoing_bookmarks') |
1232 0, 0, self, 'mercurial_outgoing_bookmarks') |
1233 self.hgBookmarkOutgoingAct.setStatusTip(self.tr( |
1233 self.hgBookmarkOutgoingAct.setStatusTip(self.tr( |
1234 'Show a list of outgoing bookmarks' |
1234 'Show a list of outgoing bookmarks' |
1235 )) |
1235 )) |
1242 self.__hgBookmarkOutgoing) |
1242 self.__hgBookmarkOutgoing) |
1243 self.actions.append(self.hgBookmarkOutgoingAct) |
1243 self.actions.append(self.hgBookmarkOutgoingAct) |
1244 |
1244 |
1245 self.hgBookmarkPushAct = E5Action( |
1245 self.hgBookmarkPushAct = E5Action( |
1246 self.tr('Push bookmark'), |
1246 self.tr('Push bookmark'), |
1247 UI.PixmapCache.getIcon("pushBookmark.png"), |
1247 UI.PixmapCache.getIcon("pushBookmark"), |
1248 self.tr('Push bookmark'), |
1248 self.tr('Push bookmark'), |
1249 0, 0, self, 'mercurial_push_bookmark') |
1249 0, 0, self, 'mercurial_push_bookmark') |
1250 self.hgBookmarkPushAct.setStatusTip(self.tr( |
1250 self.hgBookmarkPushAct.setStatusTip(self.tr( |
1251 'Push a bookmark to a remote repository' |
1251 'Push a bookmark to a remote repository' |
1252 )) |
1252 )) |
1258 self.hgBookmarkPushAct.triggered.connect(self.__hgBookmarkPush) |
1258 self.hgBookmarkPushAct.triggered.connect(self.__hgBookmarkPush) |
1259 self.actions.append(self.hgBookmarkPushAct) |
1259 self.actions.append(self.hgBookmarkPushAct) |
1260 |
1260 |
1261 self.hgBookmarkPushCurrentAct = E5Action( |
1261 self.hgBookmarkPushCurrentAct = E5Action( |
1262 self.tr('Push current bookmark'), |
1262 self.tr('Push current bookmark'), |
1263 UI.PixmapCache.getIcon("pushBookmark.png"), |
1263 UI.PixmapCache.getIcon("pushBookmark"), |
1264 self.tr('Push current bookmark'), |
1264 self.tr('Push current bookmark'), |
1265 0, 0, self, 'mercurial_push_current_bookmark') |
1265 0, 0, self, 'mercurial_push_current_bookmark') |
1266 self.hgBookmarkPushCurrentAct.setStatusTip(self.tr( |
1266 self.hgBookmarkPushCurrentAct.setStatusTip(self.tr( |
1267 'Push the current bookmark to a remote repository' |
1267 'Push the current bookmark to a remote repository' |
1268 )) |
1268 )) |
1275 self.__hgBookmarkPushCurrent) |
1275 self.__hgBookmarkPushCurrent) |
1276 self.actions.append(self.hgBookmarkPushCurrentAct) |
1276 self.actions.append(self.hgBookmarkPushCurrentAct) |
1277 |
1277 |
1278 self.hgDeleteBackupsAct = E5Action( |
1278 self.hgDeleteBackupsAct = E5Action( |
1279 self.tr('Delete all backups'), |
1279 self.tr('Delete all backups'), |
1280 UI.PixmapCache.getIcon("clearPrivateData.png"), |
1280 UI.PixmapCache.getIcon("clearPrivateData"), |
1281 self.tr('Delete all backups'), |
1281 self.tr('Delete all backups'), |
1282 0, 0, self, 'mercurial_delete_all_backups') |
1282 0, 0, self, 'mercurial_delete_all_backups') |
1283 self.hgDeleteBackupsAct.setStatusTip(self.tr( |
1283 self.hgDeleteBackupsAct.setStatusTip(self.tr( |
1284 'Delete all backup bundles stored in the backup area' |
1284 'Delete all backup bundles stored in the backup area' |
1285 )) |
1285 )) |
1378 bisectMenu.addAction(self.hgBisectSkipAct) |
1378 bisectMenu.addAction(self.hgBisectSkipAct) |
1379 bisectMenu.addAction(self.hgBisectResetAct) |
1379 bisectMenu.addAction(self.hgBisectResetAct) |
1380 self.subMenus.append(bisectMenu) |
1380 self.subMenus.append(bisectMenu) |
1381 |
1381 |
1382 tagsMenu = QMenu(self.tr("Tags"), menu) |
1382 tagsMenu = QMenu(self.tr("Tags"), menu) |
1383 tagsMenu.setIcon(UI.PixmapCache.getIcon("vcsTag.png")) |
1383 tagsMenu.setIcon(UI.PixmapCache.getIcon("vcsTag")) |
1384 tagsMenu.setTearOffEnabled(True) |
1384 tagsMenu.setTearOffEnabled(True) |
1385 tagsMenu.addAction(self.vcsTagAct) |
1385 tagsMenu.addAction(self.vcsTagAct) |
1386 tagsMenu.addAction(self.hgTagListAct) |
1386 tagsMenu.addAction(self.hgTagListAct) |
1387 self.subMenus.append(tagsMenu) |
1387 self.subMenus.append(tagsMenu) |
1388 |
1388 |
1389 branchesMenu = QMenu(self.tr("Branches"), menu) |
1389 branchesMenu = QMenu(self.tr("Branches"), menu) |
1390 branchesMenu.setIcon(UI.PixmapCache.getIcon("vcsBranch.png")) |
1390 branchesMenu.setIcon(UI.PixmapCache.getIcon("vcsBranch")) |
1391 branchesMenu.setTearOffEnabled(True) |
1391 branchesMenu.setTearOffEnabled(True) |
1392 branchesMenu.addAction(self.hgBranchAct) |
1392 branchesMenu.addAction(self.hgBranchAct) |
1393 branchesMenu.addAction(self.hgPushBranchAct) |
1393 branchesMenu.addAction(self.hgPushBranchAct) |
1394 branchesMenu.addAction(self.hgCloseBranchAct) |
1394 branchesMenu.addAction(self.hgCloseBranchAct) |
1395 branchesMenu.addAction(self.hgBranchListAct) |
1395 branchesMenu.addAction(self.hgBranchListAct) |
1396 self.subMenus.append(branchesMenu) |
1396 self.subMenus.append(branchesMenu) |
1397 |
1397 |
1398 bookmarksMenu = QMenu(self.tr("Bookmarks"), menu) |
1398 bookmarksMenu = QMenu(self.tr("Bookmarks"), menu) |
1399 bookmarksMenu.setIcon(UI.PixmapCache.getIcon("bookmark22.png")) |
1399 bookmarksMenu.setIcon(UI.PixmapCache.getIcon("bookmark22")) |
1400 bookmarksMenu.setTearOffEnabled(True) |
1400 bookmarksMenu.setTearOffEnabled(True) |
1401 bookmarksMenu.addAction(self.hgBookmarkDefineAct) |
1401 bookmarksMenu.addAction(self.hgBookmarkDefineAct) |
1402 bookmarksMenu.addAction(self.hgBookmarkDeleteAct) |
1402 bookmarksMenu.addAction(self.hgBookmarkDeleteAct) |
1403 bookmarksMenu.addAction(self.hgBookmarkRenameAct) |
1403 bookmarksMenu.addAction(self.hgBookmarkRenameAct) |
1404 bookmarksMenu.addAction(self.hgBookmarkMoveAct) |
1404 bookmarksMenu.addAction(self.hgBookmarkMoveAct) |
1426 self.__extensions[extensionName].initMenu( |
1426 self.__extensions[extensionName].initMenu( |
1427 self.__extensionsMenu)) |
1427 self.__extensionsMenu)) |
1428 self.vcs.activeExtensionsChanged.connect(self.__showExtensionMenu) |
1428 self.vcs.activeExtensionsChanged.connect(self.__showExtensionMenu) |
1429 |
1429 |
1430 graftMenu = QMenu(self.tr("Copy Changesets"), menu) |
1430 graftMenu = QMenu(self.tr("Copy Changesets"), menu) |
1431 graftMenu.setIcon(UI.PixmapCache.getIcon("vcsGraft.png")) |
1431 graftMenu.setIcon(UI.PixmapCache.getIcon("vcsGraft")) |
1432 graftMenu.setTearOffEnabled(True) |
1432 graftMenu.setTearOffEnabled(True) |
1433 graftMenu.addAction(self.hgGraftAct) |
1433 graftMenu.addAction(self.hgGraftAct) |
1434 graftMenu.addAction(self.hgGraftContinueAct) |
1434 graftMenu.addAction(self.hgGraftContinueAct) |
1435 if self.vcs.version >= (4, 7, 0): |
1435 if self.vcs.version >= (4, 7, 0): |
1436 graftMenu.addAction(self.hgGraftStopAct) |
1436 graftMenu.addAction(self.hgGraftStopAct) |
1440 subrepoMenu.setTearOffEnabled(True) |
1440 subrepoMenu.setTearOffEnabled(True) |
1441 subrepoMenu.addAction(self.hgAddSubrepoAct) |
1441 subrepoMenu.addAction(self.hgAddSubrepoAct) |
1442 subrepoMenu.addAction(self.hgRemoveSubreposAct) |
1442 subrepoMenu.addAction(self.hgRemoveSubreposAct) |
1443 |
1443 |
1444 mergeMenu = QMenu(self.tr("Merge Changesets"), menu) |
1444 mergeMenu = QMenu(self.tr("Merge Changesets"), menu) |
1445 mergeMenu.setIcon(UI.PixmapCache.getIcon("vcsMerge.png")) |
1445 mergeMenu.setIcon(UI.PixmapCache.getIcon("vcsMerge")) |
1446 mergeMenu.setTearOffEnabled(True) |
1446 mergeMenu.setTearOffEnabled(True) |
1447 mergeMenu.addAction(self.vcsMergeAct) |
1447 mergeMenu.addAction(self.vcsMergeAct) |
1448 mergeMenu.addAction(self.hgShowConflictsAct) |
1448 mergeMenu.addAction(self.hgShowConflictsAct) |
1449 mergeMenu.addAction(self.vcsResolveAct) |
1449 mergeMenu.addAction(self.vcsResolveAct) |
1450 mergeMenu.addAction(self.hgUnresolveAct) |
1450 mergeMenu.addAction(self.hgUnresolveAct) |