215 """remote repository using the 'force' option.</p>""" |
222 """remote repository using the 'force' option.</p>""" |
216 )) |
223 )) |
217 self.hgPushForcedAct.triggered[()].connect(self.__hgPushForced) |
224 self.hgPushForcedAct.triggered[()].connect(self.__hgPushForced) |
218 self.actions.append(self.hgPushForcedAct) |
225 self.actions.append(self.hgPushForcedAct) |
219 |
226 |
220 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), |
227 self.vcsExportAct = E5Action( |
221 UI.PixmapCache.getIcon("vcsExport.png"), |
228 self.trUtf8('Export from repository'), |
222 self.trUtf8('&Export from repository...'), |
229 UI.PixmapCache.getIcon("vcsExport.png"), |
223 0, 0, self, 'mercurial_export_repo') |
230 self.trUtf8('&Export from repository...'), |
|
231 0, 0, self, 'mercurial_export_repo') |
224 self.vcsExportAct.setStatusTip(self.trUtf8( |
232 self.vcsExportAct.setStatusTip(self.trUtf8( |
225 'Export a project from the repository' |
233 'Export a project from the repository' |
226 )) |
234 )) |
227 self.vcsExportAct.setWhatsThis(self.trUtf8( |
235 self.vcsExportAct.setWhatsThis(self.trUtf8( |
228 """<b>Export from repository</b>""" |
236 """<b>Export from repository</b>""" |
229 """<p>This exports a project from the repository.</p>""" |
237 """<p>This exports a project from the repository.</p>""" |
230 )) |
238 )) |
231 self.vcsExportAct.triggered[()].connect(self._vcsExport) |
239 self.vcsExportAct.triggered[()].connect(self._vcsExport) |
232 self.actions.append(self.vcsExportAct) |
240 self.actions.append(self.vcsExportAct) |
233 |
241 |
234 self.vcsLogAct = E5Action(self.trUtf8('Show log'), |
242 self.vcsLogAct = E5Action( |
235 UI.PixmapCache.getIcon("vcsLog.png"), |
243 self.trUtf8('Show log'), |
236 self.trUtf8('Show &log'), |
244 UI.PixmapCache.getIcon("vcsLog.png"), |
237 0, 0, self, 'mercurial_log') |
245 self.trUtf8('Show &log'), |
|
246 0, 0, self, 'mercurial_log') |
238 self.vcsLogAct.setStatusTip(self.trUtf8( |
247 self.vcsLogAct.setStatusTip(self.trUtf8( |
239 'Show the log of the local project' |
248 'Show the log of the local project' |
240 )) |
249 )) |
241 self.vcsLogAct.setWhatsThis(self.trUtf8( |
250 self.vcsLogAct.setWhatsThis(self.trUtf8( |
242 """<b>Show log</b>""" |
251 """<b>Show log</b>""" |
243 """<p>This shows the log of the local project.</p>""" |
252 """<p>This shows the log of the local project.</p>""" |
244 )) |
253 )) |
245 self.vcsLogAct.triggered[()].connect(self._vcsLog) |
254 self.vcsLogAct.triggered[()].connect(self._vcsLog) |
246 self.actions.append(self.vcsLogAct) |
255 self.actions.append(self.vcsLogAct) |
247 |
256 |
248 self.hgLogBrowserAct = E5Action(self.trUtf8('Show log browser'), |
257 self.hgLogBrowserAct = E5Action( |
249 UI.PixmapCache.getIcon("vcsLog.png"), |
258 self.trUtf8('Show log browser'), |
250 self.trUtf8('Show log browser'), |
259 UI.PixmapCache.getIcon("vcsLog.png"), |
251 0, 0, self, 'mercurial_log_browser') |
260 self.trUtf8('Show log browser'), |
|
261 0, 0, self, 'mercurial_log_browser') |
252 self.hgLogBrowserAct.setStatusTip(self.trUtf8( |
262 self.hgLogBrowserAct.setStatusTip(self.trUtf8( |
253 'Show a dialog to browse the log of the local project' |
263 'Show a dialog to browse the log of the local project' |
254 )) |
264 )) |
255 self.hgLogBrowserAct.setWhatsThis(self.trUtf8( |
265 self.hgLogBrowserAct.setWhatsThis(self.trUtf8( |
256 """<b>Show log browser</b>""" |
266 """<b>Show log browser</b>""" |
319 """ directory status.</p>""" |
332 """ directory status.</p>""" |
320 )) |
333 )) |
321 self.hgSummaryAct.triggered[()].connect(self.__hgSummary) |
334 self.hgSummaryAct.triggered[()].connect(self.__hgSummary) |
322 self.actions.append(self.hgSummaryAct) |
335 self.actions.append(self.hgSummaryAct) |
323 |
336 |
324 self.hgHeadsAct = E5Action(self.trUtf8('Show heads'), |
337 self.hgHeadsAct = E5Action( |
325 self.trUtf8('Show heads'), |
338 self.trUtf8('Show heads'), |
326 0, 0, self, 'mercurial_heads') |
339 self.trUtf8('Show heads'), |
|
340 0, 0, self, 'mercurial_heads') |
327 self.hgHeadsAct.setStatusTip(self.trUtf8( |
341 self.hgHeadsAct.setStatusTip(self.trUtf8( |
328 'Show the heads of the repository' |
342 'Show the heads of the repository' |
329 )) |
343 )) |
330 self.hgHeadsAct.setWhatsThis(self.trUtf8( |
344 self.hgHeadsAct.setWhatsThis(self.trUtf8( |
331 """<b>Show heads</b>""" |
345 """<b>Show heads</b>""" |
332 """<p>This shows the heads of the repository.</p>""" |
346 """<p>This shows the heads of the repository.</p>""" |
333 )) |
347 )) |
334 self.hgHeadsAct.triggered[()].connect(self.__hgHeads) |
348 self.hgHeadsAct.triggered[()].connect(self.__hgHeads) |
335 self.actions.append(self.hgHeadsAct) |
349 self.actions.append(self.hgHeadsAct) |
336 |
350 |
337 self.hgParentsAct = E5Action(self.trUtf8('Show parents'), |
351 self.hgParentsAct = E5Action( |
338 self.trUtf8('Show parents'), |
352 self.trUtf8('Show parents'), |
339 0, 0, self, 'mercurial_parents') |
353 self.trUtf8('Show parents'), |
|
354 0, 0, self, 'mercurial_parents') |
340 self.hgParentsAct.setStatusTip(self.trUtf8( |
355 self.hgParentsAct.setStatusTip(self.trUtf8( |
341 'Show the parents of the repository' |
356 'Show the parents of the repository' |
342 )) |
357 )) |
343 self.hgParentsAct.setWhatsThis(self.trUtf8( |
358 self.hgParentsAct.setWhatsThis(self.trUtf8( |
344 """<b>Show parents</b>""" |
359 """<b>Show parents</b>""" |
345 """<p>This shows the parents of the repository.</p>""" |
360 """<p>This shows the parents of the repository.</p>""" |
346 )) |
361 )) |
347 self.hgParentsAct.triggered[()].connect(self.__hgParents) |
362 self.hgParentsAct.triggered[()].connect(self.__hgParents) |
348 self.actions.append(self.hgParentsAct) |
363 self.actions.append(self.hgParentsAct) |
349 |
364 |
350 self.hgTipAct = E5Action(self.trUtf8('Show tip'), |
365 self.hgTipAct = E5Action( |
351 self.trUtf8('Show tip'), |
366 self.trUtf8('Show tip'), |
352 0, 0, self, 'mercurial_tip') |
367 self.trUtf8('Show tip'), |
|
368 0, 0, self, 'mercurial_tip') |
353 self.hgTipAct.setStatusTip(self.trUtf8( |
369 self.hgTipAct.setStatusTip(self.trUtf8( |
354 'Show the tip of the repository' |
370 'Show the tip of the repository' |
355 )) |
371 )) |
356 self.hgTipAct.setWhatsThis(self.trUtf8( |
372 self.hgTipAct.setWhatsThis(self.trUtf8( |
357 """<b>Show tip</b>""" |
373 """<b>Show tip</b>""" |
358 """<p>This shows the tip of the repository.</p>""" |
374 """<p>This shows the tip of the repository.</p>""" |
359 )) |
375 )) |
360 self.hgTipAct.triggered[()].connect(self.__hgTip) |
376 self.hgTipAct.triggered[()].connect(self.__hgTip) |
361 self.actions.append(self.hgTipAct) |
377 self.actions.append(self.hgTipAct) |
362 |
378 |
363 self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'), |
379 self.vcsRevertAct = E5Action( |
364 UI.PixmapCache.getIcon("vcsRevert.png"), |
380 self.trUtf8('Revert changes'), |
365 self.trUtf8('Re&vert changes'), |
381 UI.PixmapCache.getIcon("vcsRevert.png"), |
366 0, 0, self, 'mercurial_revert') |
382 self.trUtf8('Re&vert changes'), |
|
383 0, 0, self, 'mercurial_revert') |
367 self.vcsRevertAct.setStatusTip(self.trUtf8( |
384 self.vcsRevertAct.setStatusTip(self.trUtf8( |
368 'Revert all changes made to the local project' |
385 'Revert all changes made to the local project' |
369 )) |
386 )) |
370 self.vcsRevertAct.setWhatsThis(self.trUtf8( |
387 self.vcsRevertAct.setWhatsThis(self.trUtf8( |
371 """<b>Revert changes</b>""" |
388 """<b>Revert changes</b>""" |
372 """<p>This reverts all changes made to the local project.</p>""" |
389 """<p>This reverts all changes made to the local project.</p>""" |
373 )) |
390 )) |
374 self.vcsRevertAct.triggered[()].connect(self.__hgRevert) |
391 self.vcsRevertAct.triggered[()].connect(self.__hgRevert) |
375 self.actions.append(self.vcsRevertAct) |
392 self.actions.append(self.vcsRevertAct) |
376 |
393 |
377 self.vcsMergeAct = E5Action(self.trUtf8('Merge'), |
394 self.vcsMergeAct = E5Action( |
378 UI.PixmapCache.getIcon("vcsMerge.png"), |
395 self.trUtf8('Merge'), |
379 self.trUtf8('Mer&ge changes...'), |
396 UI.PixmapCache.getIcon("vcsMerge.png"), |
380 0, 0, self, 'mercurial_merge') |
397 self.trUtf8('Mer&ge changes...'), |
|
398 0, 0, self, 'mercurial_merge') |
381 self.vcsMergeAct.setStatusTip(self.trUtf8( |
399 self.vcsMergeAct.setStatusTip(self.trUtf8( |
382 'Merge changes of a revision into the local project' |
400 'Merge changes of a revision into the local project' |
383 )) |
401 )) |
384 self.vcsMergeAct.setWhatsThis(self.trUtf8( |
402 self.vcsMergeAct.setWhatsThis(self.trUtf8( |
385 """<b>Merge</b>""" |
403 """<b>Merge</b>""" |
401 """ resolved.</p>""" |
420 """ resolved.</p>""" |
402 )) |
421 )) |
403 self.vcsResolveAct.triggered[()].connect(self.__hgResolve) |
422 self.vcsResolveAct.triggered[()].connect(self.__hgResolve) |
404 self.actions.append(self.vcsResolveAct) |
423 self.actions.append(self.vcsResolveAct) |
405 |
424 |
406 self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'), |
425 self.vcsTagAct = E5Action( |
407 UI.PixmapCache.getIcon("vcsTag.png"), |
426 self.trUtf8('Tag in repository'), |
408 self.trUtf8('&Tag in repository...'), |
427 UI.PixmapCache.getIcon("vcsTag.png"), |
409 0, 0, self, 'mercurial_tag') |
428 self.trUtf8('&Tag in repository...'), |
|
429 0, 0, self, 'mercurial_tag') |
410 self.vcsTagAct.setStatusTip(self.trUtf8( |
430 self.vcsTagAct.setStatusTip(self.trUtf8( |
411 'Tag the local project in the repository' |
431 'Tag the local project in the repository' |
412 )) |
432 )) |
413 self.vcsTagAct.setWhatsThis(self.trUtf8( |
433 self.vcsTagAct.setWhatsThis(self.trUtf8( |
414 """<b>Tag in repository</b>""" |
434 """<b>Tag in repository</b>""" |
415 """<p>This tags the local project in the repository.</p>""" |
435 """<p>This tags the local project in the repository.</p>""" |
416 )) |
436 )) |
417 self.vcsTagAct.triggered[()].connect(self._vcsTag) |
437 self.vcsTagAct.triggered[()].connect(self._vcsTag) |
418 self.actions.append(self.vcsTagAct) |
438 self.actions.append(self.vcsTagAct) |
419 |
439 |
420 self.hgTagListAct = E5Action(self.trUtf8('List tags'), |
440 self.hgTagListAct = E5Action( |
421 self.trUtf8('List tags...'), |
441 self.trUtf8('List tags'), |
422 0, 0, self, 'mercurial_list_tags') |
442 self.trUtf8('List tags...'), |
|
443 0, 0, self, 'mercurial_list_tags') |
423 self.hgTagListAct.setStatusTip(self.trUtf8( |
444 self.hgTagListAct.setStatusTip(self.trUtf8( |
424 'List tags of the project' |
445 'List tags of the project' |
425 )) |
446 )) |
426 self.hgTagListAct.setWhatsThis(self.trUtf8( |
447 self.hgTagListAct.setWhatsThis(self.trUtf8( |
427 """<b>List tags</b>""" |
448 """<b>List tags</b>""" |
428 """<p>This lists the tags of the project.</p>""" |
449 """<p>This lists the tags of the project.</p>""" |
429 )) |
450 )) |
430 self.hgTagListAct.triggered[()].connect(self.__hgTagList) |
451 self.hgTagListAct.triggered[()].connect(self.__hgTagList) |
431 self.actions.append(self.hgTagListAct) |
452 self.actions.append(self.hgTagListAct) |
432 |
453 |
433 self.hgBranchListAct = E5Action(self.trUtf8('List branches'), |
454 self.hgBranchListAct = E5Action( |
434 self.trUtf8('List branches...'), |
455 self.trUtf8('List branches'), |
435 0, 0, self, 'mercurial_list_branches') |
456 self.trUtf8('List branches...'), |
|
457 0, 0, self, 'mercurial_list_branches') |
436 self.hgBranchListAct.setStatusTip(self.trUtf8( |
458 self.hgBranchListAct.setStatusTip(self.trUtf8( |
437 'List branches of the project' |
459 'List branches of the project' |
438 )) |
460 )) |
439 self.hgBranchListAct.setWhatsThis(self.trUtf8( |
461 self.hgBranchListAct.setWhatsThis(self.trUtf8( |
440 """<b>List branches</b>""" |
462 """<b>List branches</b>""" |
441 """<p>This lists the branches of the project.</p>""" |
463 """<p>This lists the branches of the project.</p>""" |
442 )) |
464 )) |
443 self.hgBranchListAct.triggered[()].connect(self.__hgBranchList) |
465 self.hgBranchListAct.triggered[()].connect(self.__hgBranchList) |
444 self.actions.append(self.hgBranchListAct) |
466 self.actions.append(self.hgBranchListAct) |
445 |
467 |
446 self.hgBranchAct = E5Action(self.trUtf8('Create branch'), |
468 self.hgBranchAct = E5Action( |
447 UI.PixmapCache.getIcon("vcsBranch.png"), |
469 self.trUtf8('Create branch'), |
448 self.trUtf8('Create &branch...'), |
470 UI.PixmapCache.getIcon("vcsBranch.png"), |
449 0, 0, self, 'mercurial_branch') |
471 self.trUtf8('Create &branch...'), |
|
472 0, 0, self, 'mercurial_branch') |
450 self.hgBranchAct.setStatusTip(self.trUtf8( |
473 self.hgBranchAct.setStatusTip(self.trUtf8( |
451 'Create a new branch for the local project in the repository' |
474 'Create a new branch for the local project in the repository' |
452 )) |
475 )) |
453 self.hgBranchAct.setWhatsThis(self.trUtf8( |
476 self.hgBranchAct.setWhatsThis(self.trUtf8( |
454 """<b>Create branch</b>""" |
477 """<b>Create branch</b>""" |
471 """ as a new named branch.</p>""" |
495 """ as a new named branch.</p>""" |
472 )) |
496 )) |
473 self.hgPushBranchAct.triggered[()].connect(self.__hgPushNewBranch) |
497 self.hgPushBranchAct.triggered[()].connect(self.__hgPushNewBranch) |
474 self.actions.append(self.hgPushBranchAct) |
498 self.actions.append(self.hgPushBranchAct) |
475 |
499 |
476 self.hgCloseBranchAct = E5Action(self.trUtf8('Close branch'), |
500 self.hgCloseBranchAct = E5Action( |
477 self.trUtf8('Close branch'), |
501 self.trUtf8('Close branch'), |
478 0, 0, self, 'mercurial_close_branch') |
502 self.trUtf8('Close branch'), |
|
503 0, 0, self, 'mercurial_close_branch') |
479 self.hgCloseBranchAct.setStatusTip(self.trUtf8( |
504 self.hgCloseBranchAct.setStatusTip(self.trUtf8( |
480 'Close the current branch of the local project' |
505 'Close the current branch of the local project' |
481 )) |
506 )) |
482 self.hgCloseBranchAct.setWhatsThis(self.trUtf8( |
507 self.hgCloseBranchAct.setWhatsThis(self.trUtf8( |
483 """<b>Close branch</b>""" |
508 """<b>Close branch</b>""" |
484 """<p>This closes the current branch of the local project.</p>""" |
509 """<p>This closes the current branch of the local project.</p>""" |
485 )) |
510 )) |
486 self.hgCloseBranchAct.triggered[()].connect(self.__hgCloseBranch) |
511 self.hgCloseBranchAct.triggered[()].connect(self.__hgCloseBranch) |
487 self.actions.append(self.hgCloseBranchAct) |
512 self.actions.append(self.hgCloseBranchAct) |
488 |
513 |
489 self.hgShowBranchAct = E5Action(self.trUtf8('Show current branch'), |
514 self.hgShowBranchAct = E5Action( |
490 self.trUtf8('Show current branch'), |
515 self.trUtf8('Show current branch'), |
491 0, 0, self, 'mercurial_show_branch') |
516 self.trUtf8('Show current branch'), |
|
517 0, 0, self, 'mercurial_show_branch') |
492 self.hgShowBranchAct.setStatusTip(self.trUtf8( |
518 self.hgShowBranchAct.setStatusTip(self.trUtf8( |
493 'Show the current branch of the project' |
519 'Show the current branch of the project' |
494 )) |
520 )) |
495 self.hgShowBranchAct.setWhatsThis(self.trUtf8( |
521 self.hgShowBranchAct.setWhatsThis(self.trUtf8( |
496 """<b>Show current branch</b>""" |
522 """<b>Show current branch</b>""" |
497 """<p>This shows the current branch of the project.</p>""" |
523 """<p>This shows the current branch of the project.</p>""" |
498 )) |
524 )) |
499 self.hgShowBranchAct.triggered[()].connect(self.__hgShowBranch) |
525 self.hgShowBranchAct.triggered[()].connect(self.__hgShowBranch) |
500 self.actions.append(self.hgShowBranchAct) |
526 self.actions.append(self.hgShowBranchAct) |
501 |
527 |
502 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'), |
528 self.vcsSwitchAct = E5Action( |
503 UI.PixmapCache.getIcon("vcsSwitch.png"), |
529 self.trUtf8('Switch'), |
504 self.trUtf8('S&witch...'), |
530 UI.PixmapCache.getIcon("vcsSwitch.png"), |
505 0, 0, self, 'mercurial_switch') |
531 self.trUtf8('S&witch...'), |
|
532 0, 0, self, 'mercurial_switch') |
506 self.vcsSwitchAct.setStatusTip(self.trUtf8( |
533 self.vcsSwitchAct.setStatusTip(self.trUtf8( |
507 'Switch the working directory to another revision' |
534 'Switch the working directory to another revision' |
508 )) |
535 )) |
509 self.vcsSwitchAct.setWhatsThis(self.trUtf8( |
536 self.vcsSwitchAct.setWhatsThis(self.trUtf8( |
510 """<b>Switch</b>""" |
537 """<b>Switch</b>""" |
512 """ revision.</p>""" |
539 """ revision.</p>""" |
513 )) |
540 )) |
514 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) |
541 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) |
515 self.actions.append(self.vcsSwitchAct) |
542 self.actions.append(self.vcsSwitchAct) |
516 |
543 |
517 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'), |
544 self.vcsCleanupAct = E5Action( |
518 self.trUtf8('Cleanu&p'), |
545 self.trUtf8('Cleanup'), |
519 0, 0, self, 'mercurial_cleanup') |
546 self.trUtf8('Cleanu&p'), |
|
547 0, 0, self, 'mercurial_cleanup') |
520 self.vcsCleanupAct.setStatusTip(self.trUtf8( |
548 self.vcsCleanupAct.setStatusTip(self.trUtf8( |
521 'Cleanup the local project' |
549 'Cleanup the local project' |
522 )) |
550 )) |
523 self.vcsCleanupAct.setWhatsThis(self.trUtf8( |
551 self.vcsCleanupAct.setWhatsThis(self.trUtf8( |
524 """<b>Cleanup</b>""" |
552 """<b>Cleanup</b>""" |
525 """<p>This performs a cleanup of the local project.</p>""" |
553 """<p>This performs a cleanup of the local project.</p>""" |
526 )) |
554 )) |
527 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) |
555 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) |
528 self.actions.append(self.vcsCleanupAct) |
556 self.actions.append(self.vcsCleanupAct) |
529 |
557 |
530 self.vcsCommandAct = E5Action(self.trUtf8('Execute command'), |
558 self.vcsCommandAct = E5Action( |
531 self.trUtf8('E&xecute command...'), |
559 self.trUtf8('Execute command'), |
532 0, 0, self, 'mercurial_command') |
560 self.trUtf8('E&xecute command...'), |
|
561 0, 0, self, 'mercurial_command') |
533 self.vcsCommandAct.setStatusTip(self.trUtf8( |
562 self.vcsCommandAct.setStatusTip(self.trUtf8( |
534 'Execute an arbitrary Mercurial command' |
563 'Execute an arbitrary Mercurial command' |
535 )) |
564 )) |
536 self.vcsCommandAct.setWhatsThis(self.trUtf8( |
565 self.vcsCommandAct.setWhatsThis(self.trUtf8( |
537 """<b>Execute command</b>""" |
566 """<b>Execute command</b>""" |
539 """ command.</p>""" |
568 """ command.</p>""" |
540 )) |
569 )) |
541 self.vcsCommandAct.triggered[()].connect(self._vcsCommand) |
570 self.vcsCommandAct.triggered[()].connect(self._vcsCommand) |
542 self.actions.append(self.vcsCommandAct) |
571 self.actions.append(self.vcsCommandAct) |
543 |
572 |
544 self.vcsPropsAct = E5Action(self.trUtf8('Command options'), |
573 self.vcsPropsAct = E5Action( |
545 self.trUtf8('Command &options...'), 0, 0, self, |
574 self.trUtf8('Command options'), |
546 'mercurial_options') |
575 self.trUtf8('Command &options...'), 0, 0, self, |
|
576 'mercurial_options') |
547 self.vcsPropsAct.setStatusTip(self.trUtf8( |
577 self.vcsPropsAct.setStatusTip(self.trUtf8( |
548 'Show the Mercurial command options')) |
578 'Show the Mercurial command options')) |
549 self.vcsPropsAct.setWhatsThis(self.trUtf8( |
579 self.vcsPropsAct.setWhatsThis(self.trUtf8( |
550 """<b>Command options...</b>""" |
580 """<b>Command options...</b>""" |
551 """<p>This shows a dialog to edit the Mercurial command""" |
581 """<p>This shows a dialog to edit the Mercurial command""" |
552 """ options.</p>""" |
582 """ options.</p>""" |
553 )) |
583 )) |
554 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) |
584 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) |
555 self.actions.append(self.vcsPropsAct) |
585 self.actions.append(self.vcsPropsAct) |
556 |
586 |
557 self.hgConfigAct = E5Action(self.trUtf8('Configure'), |
587 self.hgConfigAct = E5Action( |
558 self.trUtf8('Configure...'), |
588 self.trUtf8('Configure'), |
559 0, 0, self, 'mercurial_configure') |
589 self.trUtf8('Configure...'), |
|
590 0, 0, self, 'mercurial_configure') |
560 self.hgConfigAct.setStatusTip(self.trUtf8( |
591 self.hgConfigAct.setStatusTip(self.trUtf8( |
561 'Show the configuration dialog with the Mercurial page selected' |
592 'Show the configuration dialog with the Mercurial page selected' |
562 )) |
593 )) |
563 self.hgConfigAct.setWhatsThis(self.trUtf8( |
594 self.hgConfigAct.setWhatsThis(self.trUtf8( |
564 """<b>Configure</b>""" |
595 """<b>Configure</b>""" |
611 """ from all configuration files.</p>""" |
642 """ from all configuration files.</p>""" |
612 )) |
643 )) |
613 self.hgShowConfigAct.triggered[()].connect(self.__hgShowConfig) |
644 self.hgShowConfigAct.triggered[()].connect(self.__hgShowConfig) |
614 self.actions.append(self.hgShowConfigAct) |
645 self.actions.append(self.hgShowConfigAct) |
615 |
646 |
616 self.hgShowPathsAct = E5Action(self.trUtf8('Show paths'), |
647 self.hgShowPathsAct = E5Action( |
617 self.trUtf8('Show paths...'), |
648 self.trUtf8('Show paths'), |
618 0, 0, self, 'mercurial_show_paths') |
649 self.trUtf8('Show paths...'), |
|
650 0, 0, self, 'mercurial_show_paths') |
619 self.hgShowPathsAct.setStatusTip(self.trUtf8( |
651 self.hgShowPathsAct.setStatusTip(self.trUtf8( |
620 'Show the aliases for remote repositories' |
652 'Show the aliases for remote repositories' |
621 )) |
653 )) |
622 self.hgShowPathsAct.setWhatsThis(self.trUtf8( |
654 self.hgShowPathsAct.setWhatsThis(self.trUtf8( |
623 """<b>Show paths</b>""" |
655 """<b>Show paths</b>""" |
624 """<p>This shows the aliases for remote repositories.</p>""" |
656 """<p>This shows the aliases for remote repositories.</p>""" |
625 )) |
657 )) |
626 self.hgShowPathsAct.triggered[()].connect(self.__hgShowPaths) |
658 self.hgShowPathsAct.triggered[()].connect(self.__hgShowPaths) |
627 self.actions.append(self.hgShowPathsAct) |
659 self.actions.append(self.hgShowPathsAct) |
628 |
660 |
629 self.hgVerifyAct = E5Action(self.trUtf8('Verify repository'), |
661 self.hgVerifyAct = E5Action( |
630 self.trUtf8('Verify repository...'), |
662 self.trUtf8('Verify repository'), |
631 0, 0, self, 'mercurial_verify') |
663 self.trUtf8('Verify repository...'), |
|
664 0, 0, self, 'mercurial_verify') |
632 self.hgVerifyAct.setStatusTip(self.trUtf8( |
665 self.hgVerifyAct.setStatusTip(self.trUtf8( |
633 'Verify the integrity of the repository' |
666 'Verify the integrity of the repository' |
634 )) |
667 )) |
635 self.hgVerifyAct.setWhatsThis(self.trUtf8( |
668 self.hgVerifyAct.setWhatsThis(self.trUtf8( |
636 """<b>Verify repository</b>""" |
669 """<b>Verify repository</b>""" |
637 """<p>This verifies the integrity of the repository.</p>""" |
670 """<p>This verifies the integrity of the repository.</p>""" |
638 )) |
671 )) |
639 self.hgVerifyAct.triggered[()].connect(self.__hgVerify) |
672 self.hgVerifyAct.triggered[()].connect(self.__hgVerify) |
640 self.actions.append(self.hgVerifyAct) |
673 self.actions.append(self.hgVerifyAct) |
641 |
674 |
642 self.hgRecoverAct = E5Action(self.trUtf8('Recover'), |
675 self.hgRecoverAct = E5Action( |
643 self.trUtf8('Recover...'), |
676 self.trUtf8('Recover'), |
644 0, 0, self, 'mercurial_recover') |
677 self.trUtf8('Recover...'), |
|
678 0, 0, self, 'mercurial_recover') |
645 self.hgRecoverAct.setStatusTip(self.trUtf8( |
679 self.hgRecoverAct.setStatusTip(self.trUtf8( |
646 'Recover from an interrupted transaction' |
680 'Recover from an interrupted transaction' |
647 )) |
681 )) |
648 self.hgRecoverAct.setWhatsThis(self.trUtf8( |
682 self.hgRecoverAct.setWhatsThis(self.trUtf8( |
649 """<b>Recover</b>""" |
683 """<b>Recover</b>""" |
650 """<p>This recovers from an interrupted transaction.</p>""" |
684 """<p>This recovers from an interrupted transaction.</p>""" |
651 )) |
685 )) |
652 self.hgRecoverAct.triggered[()].connect(self.__hgRecover) |
686 self.hgRecoverAct.triggered[()].connect(self.__hgRecover) |
653 self.actions.append(self.hgRecoverAct) |
687 self.actions.append(self.hgRecoverAct) |
654 |
688 |
655 self.hgIdentifyAct = E5Action(self.trUtf8('Identify'), |
689 self.hgIdentifyAct = E5Action( |
656 self.trUtf8('Identify...'), |
690 self.trUtf8('Identify'), |
657 0, 0, self, 'mercurial_identify') |
691 self.trUtf8('Identify...'), |
|
692 0, 0, self, 'mercurial_identify') |
658 self.hgIdentifyAct.setStatusTip(self.trUtf8( |
693 self.hgIdentifyAct.setStatusTip(self.trUtf8( |
659 'Identify the project directory' |
694 'Identify the project directory' |
660 )) |
695 )) |
661 self.hgIdentifyAct.setWhatsThis(self.trUtf8( |
696 self.hgIdentifyAct.setWhatsThis(self.trUtf8( |
662 """<b>Identify</b>""" |
697 """<b>Identify</b>""" |
663 """<p>This identifies the project directory.</p>""" |
698 """<p>This identifies the project directory.</p>""" |
664 )) |
699 )) |
665 self.hgIdentifyAct.triggered[()].connect(self.__hgIdentify) |
700 self.hgIdentifyAct.triggered[()].connect(self.__hgIdentify) |
666 self.actions.append(self.hgIdentifyAct) |
701 self.actions.append(self.hgIdentifyAct) |
667 |
702 |
668 self.hgCreateIgnoreAct = E5Action(self.trUtf8('Create .hgignore'), |
703 self.hgCreateIgnoreAct = E5Action( |
669 self.trUtf8('Create .hgignore'), |
704 self.trUtf8('Create .hgignore'), |
670 0, 0, self, 'mercurial_create ignore') |
705 self.trUtf8('Create .hgignore'), |
|
706 0, 0, self, 'mercurial_create ignore') |
671 self.hgCreateIgnoreAct.setStatusTip(self.trUtf8( |
707 self.hgCreateIgnoreAct.setStatusTip(self.trUtf8( |
672 'Create a .hgignore file with default values' |
708 'Create a .hgignore file with default values' |
673 )) |
709 )) |
674 self.hgCreateIgnoreAct.setWhatsThis(self.trUtf8( |
710 self.hgCreateIgnoreAct.setWhatsThis(self.trUtf8( |
675 """<b>Create .hgignore</b>""" |
711 """<b>Create .hgignore</b>""" |
676 """<p>This creates a .hgignore file with default values.</p>""" |
712 """<p>This creates a .hgignore file with default values.</p>""" |
677 )) |
713 )) |
678 self.hgCreateIgnoreAct.triggered[()].connect(self.__hgCreateIgnore) |
714 self.hgCreateIgnoreAct.triggered[()].connect(self.__hgCreateIgnore) |
679 self.actions.append(self.hgCreateIgnoreAct) |
715 self.actions.append(self.hgCreateIgnoreAct) |
680 |
716 |
681 self.hgBundleAct = E5Action(self.trUtf8('Create changegroup'), |
717 self.hgBundleAct = E5Action( |
682 self.trUtf8('Create changegroup...'), |
718 self.trUtf8('Create changegroup'), |
683 0, 0, self, 'mercurial_bundle') |
719 self.trUtf8('Create changegroup...'), |
|
720 0, 0, self, 'mercurial_bundle') |
684 self.hgBundleAct.setStatusTip(self.trUtf8( |
721 self.hgBundleAct.setStatusTip(self.trUtf8( |
685 'Create changegroup file collecting changesets' |
722 'Create changegroup file collecting changesets' |
686 )) |
723 )) |
687 self.hgBundleAct.setWhatsThis(self.trUtf8( |
724 self.hgBundleAct.setWhatsThis(self.trUtf8( |
688 """<b>Create changegroup</b>""" |
725 """<b>Create changegroup</b>""" |
733 """ the 'Create changegroup' action (hg unbundle).</p>""" |
772 """ the 'Create changegroup' action (hg unbundle).</p>""" |
734 )) |
773 )) |
735 self.hgUnbundleAct.triggered[()].connect(self.__hgUnbundle) |
774 self.hgUnbundleAct.triggered[()].connect(self.__hgUnbundle) |
736 self.actions.append(self.hgUnbundleAct) |
775 self.actions.append(self.hgUnbundleAct) |
737 |
776 |
738 self.hgBisectGoodAct = E5Action(self.trUtf8('Mark as "good"'), |
777 self.hgBisectGoodAct = E5Action( |
739 self.trUtf8('Mark as "good"...'), |
778 self.trUtf8('Mark as "good"'), |
740 0, 0, self, 'mercurial_bisect_good') |
779 self.trUtf8('Mark as "good"...'), |
|
780 0, 0, self, 'mercurial_bisect_good') |
741 self.hgBisectGoodAct.setStatusTip(self.trUtf8( |
781 self.hgBisectGoodAct.setStatusTip(self.trUtf8( |
742 'Mark a selectable changeset as good' |
782 'Mark a selectable changeset as good' |
743 )) |
783 )) |
744 self.hgBisectGoodAct.setWhatsThis(self.trUtf8( |
784 self.hgBisectGoodAct.setWhatsThis(self.trUtf8( |
745 """<b>Mark as good</b>""" |
785 """<b>Mark as good</b>""" |
746 """<p>This marks a selectable changeset as good.</p>""" |
786 """<p>This marks a selectable changeset as good.</p>""" |
747 )) |
787 )) |
748 self.hgBisectGoodAct.triggered[()].connect(self.__hgBisectGood) |
788 self.hgBisectGoodAct.triggered[()].connect(self.__hgBisectGood) |
749 self.actions.append(self.hgBisectGoodAct) |
789 self.actions.append(self.hgBisectGoodAct) |
750 |
790 |
751 self.hgBisectBadAct = E5Action(self.trUtf8('Mark as "bad"'), |
791 self.hgBisectBadAct = E5Action( |
752 self.trUtf8('Mark as "bad"...'), |
792 self.trUtf8('Mark as "bad"'), |
753 0, 0, self, 'mercurial_bisect_bad') |
793 self.trUtf8('Mark as "bad"...'), |
|
794 0, 0, self, 'mercurial_bisect_bad') |
754 self.hgBisectBadAct.setStatusTip(self.trUtf8( |
795 self.hgBisectBadAct.setStatusTip(self.trUtf8( |
755 'Mark a selectable changeset as bad' |
796 'Mark a selectable changeset as bad' |
756 )) |
797 )) |
757 self.hgBisectBadAct.setWhatsThis(self.trUtf8( |
798 self.hgBisectBadAct.setWhatsThis(self.trUtf8( |
758 """<b>Mark as bad</b>""" |
799 """<b>Mark as bad</b>""" |
759 """<p>This marks a selectable changeset as bad.</p>""" |
800 """<p>This marks a selectable changeset as bad.</p>""" |
760 )) |
801 )) |
761 self.hgBisectBadAct.triggered[()].connect(self.__hgBisectBad) |
802 self.hgBisectBadAct.triggered[()].connect(self.__hgBisectBad) |
762 self.actions.append(self.hgBisectBadAct) |
803 self.actions.append(self.hgBisectBadAct) |
763 |
804 |
764 self.hgBisectSkipAct = E5Action(self.trUtf8('Skip'), |
805 self.hgBisectSkipAct = E5Action( |
765 self.trUtf8('Skip...'), |
806 self.trUtf8('Skip'), |
766 0, 0, self, 'mercurial_bisect_skip') |
807 self.trUtf8('Skip...'), |
|
808 0, 0, self, 'mercurial_bisect_skip') |
767 self.hgBisectSkipAct.setStatusTip(self.trUtf8( |
809 self.hgBisectSkipAct.setStatusTip(self.trUtf8( |
768 'Skip a selectable changeset' |
810 'Skip a selectable changeset' |
769 )) |
811 )) |
770 self.hgBisectSkipAct.setWhatsThis(self.trUtf8( |
812 self.hgBisectSkipAct.setWhatsThis(self.trUtf8( |
771 """<b>Skip</b>""" |
813 """<b>Skip</b>""" |
772 """<p>This skips a selectable changeset.</p>""" |
814 """<p>This skips a selectable changeset.</p>""" |
773 )) |
815 )) |
774 self.hgBisectSkipAct.triggered[()].connect(self.__hgBisectSkip) |
816 self.hgBisectSkipAct.triggered[()].connect(self.__hgBisectSkip) |
775 self.actions.append(self.hgBisectSkipAct) |
817 self.actions.append(self.hgBisectSkipAct) |
776 |
818 |
777 self.hgBisectResetAct = E5Action(self.trUtf8('Reset'), |
819 self.hgBisectResetAct = E5Action( |
778 self.trUtf8('Reset'), |
820 self.trUtf8('Reset'), |
779 0, 0, self, 'mercurial_bisect_reset') |
821 self.trUtf8('Reset'), |
|
822 0, 0, self, 'mercurial_bisect_reset') |
780 self.hgBisectResetAct.setStatusTip(self.trUtf8( |
823 self.hgBisectResetAct.setStatusTip(self.trUtf8( |
781 'Reset the bisect search data' |
824 'Reset the bisect search data' |
782 )) |
825 )) |
783 self.hgBisectResetAct.setWhatsThis(self.trUtf8( |
826 self.hgBisectResetAct.setWhatsThis(self.trUtf8( |
784 """<b>Reset</b>""" |
827 """<b>Reset</b>""" |
785 """<p>This resets the bisect search data.</p>""" |
828 """<p>This resets the bisect search data.</p>""" |
786 )) |
829 )) |
787 self.hgBisectResetAct.triggered[()].connect(self.__hgBisectReset) |
830 self.hgBisectResetAct.triggered[()].connect(self.__hgBisectReset) |
788 self.actions.append(self.hgBisectResetAct) |
831 self.actions.append(self.hgBisectResetAct) |
789 |
832 |
790 self.hgBackoutAct = E5Action(self.trUtf8('Back out changeset'), |
833 self.hgBackoutAct = E5Action( |
791 self.trUtf8('Back out changeset'), |
834 self.trUtf8('Back out changeset'), |
792 0, 0, self, 'mercurial_backout') |
835 self.trUtf8('Back out changeset'), |
|
836 0, 0, self, 'mercurial_backout') |
793 self.hgBackoutAct.setStatusTip(self.trUtf8( |
837 self.hgBackoutAct.setStatusTip(self.trUtf8( |
794 'Back out changes of an earlier changeset' |
838 'Back out changes of an earlier changeset' |
795 )) |
839 )) |
796 self.hgBackoutAct.setWhatsThis(self.trUtf8( |
840 self.hgBackoutAct.setWhatsThis(self.trUtf8( |
797 """<b>Back out changeset</b>""" |
841 """<b>Back out changeset</b>""" |
798 """<p>This backs out changes of an earlier changeset.</p>""" |
842 """<p>This backs out changes of an earlier changeset.</p>""" |
799 )) |
843 )) |
800 self.hgBackoutAct.triggered[()].connect(self.__hgBackout) |
844 self.hgBackoutAct.triggered[()].connect(self.__hgBackout) |
801 self.actions.append(self.hgBackoutAct) |
845 self.actions.append(self.hgBackoutAct) |
802 |
846 |
803 self.hgRollbackAct = E5Action(self.trUtf8('Rollback last transaction'), |
847 self.hgRollbackAct = E5Action( |
804 self.trUtf8('Rollback last transaction'), |
848 self.trUtf8('Rollback last transaction'), |
805 0, 0, self, 'mercurial_rollback') |
849 self.trUtf8('Rollback last transaction'), |
|
850 0, 0, self, 'mercurial_rollback') |
806 self.hgRollbackAct.setStatusTip(self.trUtf8( |
851 self.hgRollbackAct.setStatusTip(self.trUtf8( |
807 'Rollback the last transaction' |
852 'Rollback the last transaction' |
808 )) |
853 )) |
809 self.hgRollbackAct.setWhatsThis(self.trUtf8( |
854 self.hgRollbackAct.setWhatsThis(self.trUtf8( |
810 """<b>Rollback last transaction</b>""" |
855 """<b>Rollback last transaction</b>""" |
824 """ care. </strong></p>""" |
869 """ care. </strong></p>""" |
825 )) |
870 )) |
826 self.hgRollbackAct.triggered[()].connect(self.__hgRollback) |
871 self.hgRollbackAct.triggered[()].connect(self.__hgRollback) |
827 self.actions.append(self.hgRollbackAct) |
872 self.actions.append(self.hgRollbackAct) |
828 |
873 |
829 self.hgServeAct = E5Action(self.trUtf8('Serve project repository'), |
874 self.hgServeAct = E5Action( |
830 self.trUtf8('Serve project repository...'), |
875 self.trUtf8('Serve project repository'), |
831 0, 0, self, 'mercurial_serve') |
876 self.trUtf8('Serve project repository...'), |
|
877 0, 0, self, 'mercurial_serve') |
832 self.hgServeAct.setStatusTip(self.trUtf8( |
878 self.hgServeAct.setStatusTip(self.trUtf8( |
833 'Serve the project repository' |
879 'Serve the project repository' |
834 )) |
880 )) |
835 self.hgServeAct.setWhatsThis(self.trUtf8( |
881 self.hgServeAct.setWhatsThis(self.trUtf8( |
836 """<b>Serve project repository</b>""" |
882 """<b>Serve project repository</b>""" |
837 """<p>This serves the project repository.</p>""" |
883 """<p>This serves the project repository.</p>""" |
838 )) |
884 )) |
839 self.hgServeAct.triggered[()].connect(self.__hgServe) |
885 self.hgServeAct.triggered[()].connect(self.__hgServe) |
840 self.actions.append(self.hgServeAct) |
886 self.actions.append(self.hgServeAct) |
841 |
887 |
842 self.hgImportAct = E5Action(self.trUtf8('Import Patch'), |
888 self.hgImportAct = E5Action( |
843 self.trUtf8('Import Patch...'), |
889 self.trUtf8('Import Patch'), |
844 0, 0, self, 'mercurial_import') |
890 self.trUtf8('Import Patch...'), |
|
891 0, 0, self, 'mercurial_import') |
845 self.hgImportAct.setStatusTip(self.trUtf8( |
892 self.hgImportAct.setStatusTip(self.trUtf8( |
846 'Import a patch from a patch file' |
893 'Import a patch from a patch file' |
847 )) |
894 )) |
848 self.hgImportAct.setWhatsThis(self.trUtf8( |
895 self.hgImportAct.setWhatsThis(self.trUtf8( |
849 """<b>Import Patch</b>""" |
896 """<b>Import Patch</b>""" |
851 """ project.</p>""" |
898 """ project.</p>""" |
852 )) |
899 )) |
853 self.hgImportAct.triggered[()].connect(self.__hgImport) |
900 self.hgImportAct.triggered[()].connect(self.__hgImport) |
854 self.actions.append(self.hgImportAct) |
901 self.actions.append(self.hgImportAct) |
855 |
902 |
856 self.hgExportAct = E5Action(self.trUtf8('Export Patches'), |
903 self.hgExportAct = E5Action( |
857 self.trUtf8('Export Patches...'), |
904 self.trUtf8('Export Patches'), |
858 0, 0, self, 'mercurial_export') |
905 self.trUtf8('Export Patches...'), |
|
906 0, 0, self, 'mercurial_export') |
859 self.hgExportAct.setStatusTip(self.trUtf8( |
907 self.hgExportAct.setStatusTip(self.trUtf8( |
860 'Export revisions to patch files' |
908 'Export revisions to patch files' |
861 )) |
909 )) |
862 self.hgExportAct.setWhatsThis(self.trUtf8( |
910 self.hgExportAct.setWhatsThis(self.trUtf8( |
863 """<b>Export Patches</b>""" |
911 """<b>Export Patches</b>""" |
864 """<p>This exports revisions of the project to patch files.</p>""" |
912 """<p>This exports revisions of the project to patch files.</p>""" |
865 )) |
913 )) |
866 self.hgExportAct.triggered[()].connect(self.__hgExport) |
914 self.hgExportAct.triggered[()].connect(self.__hgExport) |
867 self.actions.append(self.hgExportAct) |
915 self.actions.append(self.hgExportAct) |
868 |
916 |
869 self.hgPhaseAct = E5Action(self.trUtf8('Change Phase'), |
917 self.hgPhaseAct = E5Action( |
870 self.trUtf8('Change Phase...'), |
918 self.trUtf8('Change Phase'), |
871 0, 0, self, 'mercurial_change_phase') |
919 self.trUtf8('Change Phase...'), |
|
920 0, 0, self, 'mercurial_change_phase') |
872 self.hgPhaseAct.setStatusTip(self.trUtf8( |
921 self.hgPhaseAct.setStatusTip(self.trUtf8( |
873 'Change the phase of revisions' |
922 'Change the phase of revisions' |
874 )) |
923 )) |
875 self.hgPhaseAct.setWhatsThis(self.trUtf8( |
924 self.hgPhaseAct.setWhatsThis(self.trUtf8( |
876 """<b>Change Phase</b>""" |
925 """<b>Change Phase</b>""" |
877 """<p>This changes the phase of revisions.</p>""" |
926 """<p>This changes the phase of revisions.</p>""" |
878 )) |
927 )) |
879 self.hgPhaseAct.triggered[()].connect(self.__hgPhase) |
928 self.hgPhaseAct.triggered[()].connect(self.__hgPhase) |
880 self.actions.append(self.hgPhaseAct) |
929 self.actions.append(self.hgPhaseAct) |
881 |
930 |
882 self.hgGraftAct = E5Action(self.trUtf8('Copy Changesets'), |
931 self.hgGraftAct = E5Action( |
883 UI.PixmapCache.getIcon("vcsGraft.png"), |
932 self.trUtf8('Copy Changesets'), |
884 self.trUtf8('Copy Changesets'), |
933 UI.PixmapCache.getIcon("vcsGraft.png"), |
885 0, 0, self, 'mercurial_graft') |
934 self.trUtf8('Copy Changesets'), |
|
935 0, 0, self, 'mercurial_graft') |
886 self.hgGraftAct.setStatusTip(self.trUtf8( |
936 self.hgGraftAct.setStatusTip(self.trUtf8( |
887 'Copies changesets from another branch' |
937 'Copies changesets from another branch' |
888 )) |
938 )) |
889 self.hgGraftAct.setWhatsThis(self.trUtf8( |
939 self.hgGraftAct.setWhatsThis(self.trUtf8( |
890 """<b>Copy Changesets</b>""" |
940 """<b>Copy Changesets</b>""" |