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): |