566 """<p>This recovers from an interrupted transaction.</p>""" |
566 """<p>This recovers from an interrupted transaction.</p>""" |
567 )) |
567 )) |
568 self.connect(self.hgRecoverAct, SIGNAL('triggered()'), self.__hgRecover) |
568 self.connect(self.hgRecoverAct, SIGNAL('triggered()'), self.__hgRecover) |
569 self.actions.append(self.hgRecoverAct) |
569 self.actions.append(self.hgRecoverAct) |
570 |
570 |
|
571 self.hgIdentifyAct = E5Action(self.trUtf8('Identify'), |
|
572 self.trUtf8('Identify...'), |
|
573 0, 0, self, 'mercurial_identify') |
|
574 self.hgIdentifyAct.setStatusTip(self.trUtf8( |
|
575 'Identify the project directory' |
|
576 )) |
|
577 self.hgIdentifyAct.setWhatsThis(self.trUtf8( |
|
578 """<b>Identify</b>""" |
|
579 """<p>This identifies the project directory.</p>""" |
|
580 )) |
|
581 self.connect(self.hgIdentifyAct, SIGNAL('triggered()'), self.__hgIdentify) |
|
582 self.actions.append(self.hgIdentifyAct) |
|
583 |
571 self.hgCreateIgnoreAct = E5Action(self.trUtf8('Create .hgignore'), |
584 self.hgCreateIgnoreAct = E5Action(self.trUtf8('Create .hgignore'), |
572 self.trUtf8('Create .hgignore'), |
585 self.trUtf8('Create .hgignore'), |
573 0, 0, self, 'mercurial_create ignore') |
586 0, 0, self, 'mercurial_create ignore') |
574 self.hgCreateIgnoreAct.setStatusTip(self.trUtf8( |
587 self.hgCreateIgnoreAct.setStatusTip(self.trUtf8( |
575 'Create a .hgignore file with default values' |
588 'Create a .hgignore file with default values' |
687 adminMenu = QMenu(self.trUtf8("Repository Administration"), menu) |
700 adminMenu = QMenu(self.trUtf8("Repository Administration"), menu) |
688 adminMenu.addAction(self.hgHeadsAct) |
701 adminMenu.addAction(self.hgHeadsAct) |
689 adminMenu.addAction(self.hgParentsAct) |
702 adminMenu.addAction(self.hgParentsAct) |
690 adminMenu.addAction(self.hgTipAct) |
703 adminMenu.addAction(self.hgTipAct) |
691 adminMenu.addAction(self.hgShowBranchAct) |
704 adminMenu.addAction(self.hgShowBranchAct) |
|
705 adminMenu.addAction(self.hgIdentifyAct) |
692 adminMenu.addSeparator() |
706 adminMenu.addSeparator() |
693 adminMenu.addAction(self.hgShowPathsAct) |
707 adminMenu.addAction(self.hgShowPathsAct) |
694 adminMenu.addSeparator() |
708 adminMenu.addSeparator() |
695 adminMenu.addAction(self.hgShowConfigAct) |
709 adminMenu.addAction(self.hgShowConfigAct) |
696 adminMenu.addAction(self.hgRepoConfigAct) |
710 adminMenu.addAction(self.hgRepoConfigAct) |
904 """ |
918 """ |
905 Protected slot used to recover from an interrupted transaction. |
919 Protected slot used to recover from an interrupted transaction. |
906 """ |
920 """ |
907 self.vcs.hgRecover(self.project.ppath) |
921 self.vcs.hgRecover(self.project.ppath) |
908 |
922 |
|
923 def __hgIdentify(self): |
|
924 """ |
|
925 Protected slot used to identify the project directory. |
|
926 """ |
|
927 self.vcs.hgIdentify(self.project.ppath) |
|
928 |
909 def __hgCreateIgnore(self): |
929 def __hgCreateIgnore(self): |
910 """ |
930 """ |
911 Protected slot used to create a .hgignore file for the project. |
931 Protected slot used to create a .hgignore file for the project. |
912 """ |
932 """ |
913 self.vcs.hgCreateIgnoreFile(self.project.ppath, autoAdd = True) |
933 self.vcs.hgCreateIgnoreFile(self.project.ppath, autoAdd = True) |