--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py Mon Dec 11 15:11:32 2023 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py Tue Dec 12 09:35:39 2023 +0100 @@ -382,7 +382,7 @@ @return flag indicating an execution without errors (boolean) """ status = self.vcsCheckout(vcsDataDict, projectDir) - shutil.rmtree(os.path.join(projectDir, self.adminDir), True) + shutil.rmtree(os.path.join(projectDir, self.adminDir), ignore_errors=True) if os.path.exists(os.path.join(projectDir, Hg.IgnoreFileName)): os.remove(os.path.join(projectDir, Hg.IgnoreFileName)) return status @@ -2724,7 +2724,7 @@ ).format(backupdir), ) if yes: - shutil.rmtree(backupdir, True) + shutil.rmtree(backupdir, ignore_errors=True) ########################################################################### ## Methods to deal with sub-repositories are below. @@ -2876,7 +2876,7 @@ for removedSubrepo in removedSubrepos: subrepoPath = removedSubrepo.split("=", 1)[0].strip() subrepoAbsPath = os.path.join(ppath, subrepoPath) - shutil.rmtree(subrepoAbsPath, True) + shutil.rmtree(subrepoAbsPath, ignore_errors=True) ########################################################################### ## Methods to handle configuration dependent stuff are below.