Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 5284
3a2f9bee8974
parent 5283
06423d65a2b8
child 5292
ac8b476ba122
equal deleted inserted replaced
5283:06423d65a2b8 5284:3a2f9bee8974
3137 dia = HgDialog(self.tr("Create Unversioned Archive"), self) 3137 dia = HgDialog(self.tr("Create Unversioned Archive"), self)
3138 res = dia.startProcess(args, repodir) 3138 res = dia.startProcess(args, repodir)
3139 if res: 3139 if res:
3140 dia.exec_() 3140 dia.exec_()
3141 3141
3142 def hgDeleteBackups(self):
3143 """
3144 Public method to delete all backup bundles in the backup area.
3145 """
3146 # find the root of the repo
3147 repodir = self.__projectHelper.getProject().getProjectPath()
3148 while not os.path.isdir(os.path.join(repodir, self.adminDir)):
3149 repodir = os.path.dirname(repodir)
3150 if os.path.splitdrive(repodir)[1] == os.sep:
3151 return
3152
3153 backupdir = os.path.join(repodir, self.adminDir, "strip-backup")
3154 yes = E5MessageBox.yesNo(
3155 self.__ui,
3156 self.tr("Delete All Backups"),
3157 self.tr("""<p>Do you really want to delete all backup bundles"""
3158 """ stored the backup area <b>{0}</b>?</p>""").format(
3159 backupdir))
3160 if yes:
3161 shutil.rmtree(backupdir, True)
3162
3142 ########################################################################### 3163 ###########################################################################
3143 ## Methods to deal with subrepositories are below. 3164 ## Methods to deal with subrepositories are below.
3144 ########################################################################### 3165 ###########################################################################
3145 3166
3146 def getHgSubPath(self): 3167 def getHgSubPath(self):

eric ide

mercurial