743 """<p>This backs out changes of an earlier changeset.</p>""" |
743 """<p>This backs out changes of an earlier changeset.</p>""" |
744 )) |
744 )) |
745 self.hgBackoutAct.triggered[()].connect(self.__hgBackout) |
745 self.hgBackoutAct.triggered[()].connect(self.__hgBackout) |
746 self.actions.append(self.hgBackoutAct) |
746 self.actions.append(self.hgBackoutAct) |
747 |
747 |
|
748 self.hgRollbackAct = E5Action(self.trUtf8('Rollback last transaction'), |
|
749 self.trUtf8('Rollback last transaction'), |
|
750 0, 0, self, 'mercurial_rollback') |
|
751 self.hgRollbackAct.setStatusTip(self.trUtf8( |
|
752 'Rollback the last transaction' |
|
753 )) |
|
754 self.hgRollbackAct.setWhatsThis(self.trUtf8( |
|
755 """<b>Rollback last transaction</b>""" |
|
756 """<p>This performs a rollback of the last transaction. Transactions""" |
|
757 """ are used to encapsulate the effects of all commands that create new""" |
|
758 """ changesets or propagate existing changesets into a repository.""" |
|
759 """ For example, the following commands are transactional, and""" |
|
760 """ their effects can be rolled back:<ul>""" |
|
761 """<li>commit</li>""" |
|
762 """<li>import</li>""" |
|
763 """<li>pull</li>""" |
|
764 """<li>push (with this repository as the destination)</li>""" |
|
765 """<li>unbundle</li>""" |
|
766 """</ul>""" |
|
767 """</p><p><strong>This command is dangerous. Please use with care.""" |
|
768 """</strong></p>""" |
|
769 )) |
|
770 self.hgRollbackAct.triggered[()].connect(self.__hgRollback) |
|
771 self.actions.append(self.hgRollbackAct) |
|
772 |
748 self.hgServeAct = E5Action(self.trUtf8('Serve project repository'), |
773 self.hgServeAct = E5Action(self.trUtf8('Serve project repository'), |
749 self.trUtf8('Serve project repository...'), |
774 self.trUtf8('Serve project repository...'), |
750 0, 0, self, 'mercurial_serve') |
775 0, 0, self, 'mercurial_serve') |
751 self.hgServeAct.setStatusTip(self.trUtf8( |
776 self.hgServeAct.setStatusTip(self.trUtf8( |
752 'Serve the project repository' |
777 'Serve the project repository' |
781 adminMenu.addAction(self.hgCreateIgnoreAct) |
806 adminMenu.addAction(self.hgCreateIgnoreAct) |
782 adminMenu.addSeparator() |
807 adminMenu.addSeparator() |
783 adminMenu.addAction(self.hgRecoverAct) |
808 adminMenu.addAction(self.hgRecoverAct) |
784 adminMenu.addSeparator() |
809 adminMenu.addSeparator() |
785 adminMenu.addAction(self.hgBackoutAct) |
810 adminMenu.addAction(self.hgBackoutAct) |
|
811 adminMenu.addAction(self.hgRollbackAct) |
786 adminMenu.addSeparator() |
812 adminMenu.addSeparator() |
787 adminMenu.addAction(self.hgVerifyAct) |
813 adminMenu.addAction(self.hgVerifyAct) |
788 |
814 |
789 specialsMenu = QMenu(self.trUtf8("Specials"), menu) |
815 specialsMenu = QMenu(self.trUtf8("Specials"), menu) |
790 specialsMenu.addAction(self.hgPushForcedAct) |
816 specialsMenu.addAction(self.hgPushForcedAct) |
1084 """ |
1110 """ |
1085 Private slot used to back out changes of a changeset. |
1111 Private slot used to back out changes of a changeset. |
1086 """ |
1112 """ |
1087 self.vcs.hgBackout(self.project.ppath) |
1113 self.vcs.hgBackout(self.project.ppath) |
1088 |
1114 |
|
1115 def __hgRollback(self): |
|
1116 """ |
|
1117 Private slot used to rollback the last transaction. |
|
1118 """ |
|
1119 self.vcs.hgRollback(self.project.ppath) |
|
1120 |
1089 def __hgServe(self): |
1121 def __hgServe(self): |
1090 """ |
1122 """ |
1091 Private slot used to serve the project. |
1123 Private slot used to serve the project. |
1092 """ |
1124 """ |
1093 self.vcs.hgServe(self.project.ppath) |
1125 self.vcs.hgServe(self.project.ppath) |