Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py

changeset 5284
3a2f9bee8974
parent 5283
06423d65a2b8
child 5389
9b1c800daff3
equal deleted inserted replaced
5283:06423d65a2b8 5284:3a2f9bee8974
1236 """<p>This pushes the current bookmark from the local""" 1236 """<p>This pushes the current bookmark from the local"""
1237 """ repository to a remote repository.</p>""" 1237 """ repository to a remote repository.</p>"""
1238 )) 1238 ))
1239 self.hgBookmarkPushCurrentAct.triggered.connect( 1239 self.hgBookmarkPushCurrentAct.triggered.connect(
1240 self.__hgBookmarkPushCurrent) 1240 self.__hgBookmarkPushCurrent)
1241 self.actions.append(self.hgBookmarkPushCurrentAct)
1242
1243 self.hgDeleteBackupsAct = E5Action(
1244 self.tr('Delete all backups'),
1245 UI.PixmapCache.getIcon("clearPrivateData.png"),
1246 self.tr('Delete all backups'),
1247 0, 0, self, 'mercurial_delete_all_backups')
1248 self.hgDeleteBackupsAct.setStatusTip(self.tr(
1249 'Delete all backup bundles stored in the backup area'
1250 ))
1251 self.hgDeleteBackupsAct.setWhatsThis(self.tr(
1252 """<b>Delete all backups</b>"""
1253 """<p>This deletes all backup bundles stored in the backup"""
1254 """ area of the repository.</p>"""
1255 ))
1256 self.hgDeleteBackupsAct.triggered.connect(
1257 self.__hgDeleteBackups)
1258 self.actions.append(self.hgDeleteBackupsAct)
1241 1259
1242 def __checkActions(self): 1260 def __checkActions(self):
1243 """ 1261 """
1244 Private slot to set the enabled status of actions. 1262 Private slot to set the enabled status of actions.
1245 """ 1263 """
1288 adminMenu.addSeparator() 1306 adminMenu.addSeparator()
1289 adminMenu.addAction(self.hgBackoutAct) 1307 adminMenu.addAction(self.hgBackoutAct)
1290 adminMenu.addAction(self.hgRollbackAct) 1308 adminMenu.addAction(self.hgRollbackAct)
1291 adminMenu.addSeparator() 1309 adminMenu.addSeparator()
1292 adminMenu.addAction(self.hgVerifyAct) 1310 adminMenu.addAction(self.hgVerifyAct)
1311 adminMenu.addSeparator()
1312 adminMenu.addAction(self.hgDeleteBackupsAct)
1293 self.subMenus.append(adminMenu) 1313 self.subMenus.append(adminMenu)
1294 1314
1295 specialsMenu = QMenu(self.tr("Specials"), menu) 1315 specialsMenu = QMenu(self.tr("Specials"), menu)
1296 specialsMenu.setTearOffEnabled(True) 1316 specialsMenu.setTearOffEnabled(True)
1297 specialsMenu.addAction(self.hgArchiveAct) 1317 specialsMenu.addAction(self.hgArchiveAct)
1994 def __hgBookmarkPushCurrent(self): 2014 def __hgBookmarkPushCurrent(self):
1995 """ 2015 """
1996 Private slot used to push the current bookmark to a remote repository. 2016 Private slot used to push the current bookmark to a remote repository.
1997 """ 2017 """
1998 self.vcs.hgBookmarkPush(self.project.getProjectPath(), current=True) 2018 self.vcs.hgBookmarkPush(self.project.getProjectPath(), current=True)
2019
2020 def __hgDeleteBackups(self):
2021 """
2022 Private slot used to delete all backup bundles.
2023 """
2024 self.vcs.hgDeleteBackups()

eric ide

mercurial