215 self.actions.append(self.hgPushForcedAct) |
215 self.actions.append(self.hgPushForcedAct) |
216 |
216 |
217 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), |
217 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), |
218 UI.PixmapCache.getIcon("vcsExport.png"), |
218 UI.PixmapCache.getIcon("vcsExport.png"), |
219 self.trUtf8('&Export from repository...'), |
219 self.trUtf8('&Export from repository...'), |
220 0, 0, self, 'subversion_export') |
220 0, 0, self, 'mercurial_export_repo') |
221 self.vcsExportAct.setStatusTip(self.trUtf8( |
221 self.vcsExportAct.setStatusTip(self.trUtf8( |
222 'Export a project from the repository' |
222 'Export a project from the repository' |
223 )) |
223 )) |
224 self.vcsExportAct.setWhatsThis(self.trUtf8( |
224 self.vcsExportAct.setWhatsThis(self.trUtf8( |
225 """<b>Export from repository</b>""" |
225 """<b>Export from repository</b>""" |
286 self.hgExtDiffAct.triggered[()].connect(self.__hgExtendedDiff) |
286 self.hgExtDiffAct.triggered[()].connect(self.__hgExtendedDiff) |
287 self.actions.append(self.hgExtDiffAct) |
287 self.actions.append(self.hgExtDiffAct) |
288 |
288 |
289 self.vcsStatusAct = E5Action(self.trUtf8('Show status'), |
289 self.vcsStatusAct = E5Action(self.trUtf8('Show status'), |
290 UI.PixmapCache.getIcon("vcsStatus.png"), |
290 UI.PixmapCache.getIcon("vcsStatus.png"), |
291 self.trUtf8('Show &status'), |
291 self.trUtf8('Show &status...'), |
292 0, 0, self, 'mercurial_status') |
292 0, 0, self, 'mercurial_status') |
293 self.vcsStatusAct.setStatusTip(self.trUtf8( |
293 self.vcsStatusAct.setStatusTip(self.trUtf8( |
294 'Show the status of the local project' |
294 'Show the status of the local project' |
295 )) |
295 )) |
296 self.vcsStatusAct.setWhatsThis(self.trUtf8( |
296 self.vcsStatusAct.setWhatsThis(self.trUtf8( |
297 """<b>Show status</b>""" |
297 """<b>Show status</b>""" |
298 """<p>This shows the status of the local project.</p>""" |
298 """<p>This shows the status of the local project.</p>""" |
299 )) |
299 )) |
300 self.vcsStatusAct.triggered[()].connect(self._vcsStatus) |
300 self.vcsStatusAct.triggered[()].connect(self._vcsStatus) |
301 self.actions.append(self.vcsStatusAct) |
301 self.actions.append(self.vcsStatusAct) |
|
302 |
|
303 self.hgSummaryAct = E5Action( |
|
304 self.trUtf8('Show Summary'), |
|
305 UI.PixmapCache.getIcon("vcsSummary.png"), |
|
306 self.trUtf8('Show summary...'), |
|
307 0, 0, self, 'mercurial_summary') |
|
308 self.hgSummaryAct.setStatusTip(self.trUtf8( |
|
309 'Show summary information of the working directory status' |
|
310 )) |
|
311 self.hgSummaryAct.setWhatsThis(self.trUtf8( |
|
312 """<b>Show summary</b>""" |
|
313 """<p>This shows some summary information of the working""" |
|
314 """ directory status.</p>""" |
|
315 )) |
|
316 self.hgSummaryAct.triggered[()].connect(self.__hgSummary) |
|
317 self.actions.append(self.hgSummaryAct) |
302 |
318 |
303 self.hgHeadsAct = E5Action(self.trUtf8('Show heads'), |
319 self.hgHeadsAct = E5Action(self.trUtf8('Show heads'), |
304 self.trUtf8('Show heads'), |
320 self.trUtf8('Show heads'), |
305 0, 0, self, 'mercurial_heads') |
321 0, 0, self, 'mercurial_heads') |
306 self.hgHeadsAct.setStatusTip(self.trUtf8( |
322 self.hgHeadsAct.setStatusTip(self.trUtf8( |
901 """<b>Remove...</b>""" |
917 """<b>Remove...</b>""" |
902 """<p>Remove sub-repositories from the project.</p>""" |
918 """<p>Remove sub-repositories from the project.</p>""" |
903 )) |
919 )) |
904 self.hgRemoveSubreposAct.triggered[()].connect(self.__hgRemoveSubrepositories) |
920 self.hgRemoveSubreposAct.triggered[()].connect(self.__hgRemoveSubrepositories) |
905 self.actions.append(self.hgRemoveSubreposAct) |
921 self.actions.append(self.hgRemoveSubreposAct) |
|
922 |
|
923 self.hgArchiveAct = E5Action(self.trUtf8('Create unversioned archive'), |
|
924 UI.PixmapCache.getIcon("vcsExport.png"), |
|
925 self.trUtf8('Create unversioned archive...'), |
|
926 0, 0, self, 'mercurial_archive') |
|
927 self.hgArchiveAct.setStatusTip(self.trUtf8( |
|
928 'Create an unversioned archive from the repository' |
|
929 )) |
|
930 self.hgArchiveAct.setWhatsThis(self.trUtf8( |
|
931 """<b>Create unversioned archive...</b>""" |
|
932 """<p>This creates an unversioned archive from the repository.</p>""" |
|
933 )) |
|
934 self.hgArchiveAct.triggered[()].connect(self.__hgArchive) |
|
935 self.actions.append(self.hgArchiveAct) |
906 |
936 |
907 def initMenu(self, menu): |
937 def initMenu(self, menu): |
908 """ |
938 """ |
909 Public method to generate the VCS menu. |
939 Public method to generate the VCS menu. |
910 |
940 |
937 adminMenu.addAction(self.hgVerifyAct) |
967 adminMenu.addAction(self.hgVerifyAct) |
938 self.subMenus.append(adminMenu) |
968 self.subMenus.append(adminMenu) |
939 |
969 |
940 specialsMenu = QMenu(self.trUtf8("Specials"), menu) |
970 specialsMenu = QMenu(self.trUtf8("Specials"), menu) |
941 specialsMenu.setTearOffEnabled(True) |
971 specialsMenu.setTearOffEnabled(True) |
|
972 specialsMenu.addAction(self.hgArchiveAct) |
|
973 specialsMenu.addSeparator() |
942 specialsMenu.addAction(self.hgPushForcedAct) |
974 specialsMenu.addAction(self.hgPushForcedAct) |
943 specialsMenu.addSeparator() |
975 specialsMenu.addSeparator() |
944 specialsMenu.addAction(self.hgServeAct) |
976 specialsMenu.addAction(self.hgServeAct) |
945 self.subMenus.append(specialsMenu) |
977 self.subMenus.append(specialsMenu) |
946 |
978 |
1031 menu.addSeparator() |
1063 menu.addSeparator() |
1032 menu.addAction(self.vcsLogAct) |
1064 menu.addAction(self.vcsLogAct) |
1033 menu.addAction(self.hgLogBrowserAct) |
1065 menu.addAction(self.hgLogBrowserAct) |
1034 menu.addSeparator() |
1066 menu.addSeparator() |
1035 menu.addAction(self.vcsStatusAct) |
1067 menu.addAction(self.vcsStatusAct) |
|
1068 menu.addAction(self.hgSummaryAct) |
1036 menu.addSeparator() |
1069 menu.addSeparator() |
1037 menu.addAction(self.vcsDiffAct) |
1070 menu.addAction(self.vcsDiffAct) |
1038 menu.addAction(self.hgExtDiffAct) |
1071 menu.addAction(self.hgExtDiffAct) |
1039 menu.addSeparator() |
1072 menu.addSeparator() |
1040 if self.vcs.version >= (2, 1): |
1073 if self.vcs.version >= (2, 1): |