src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py

branch
eric7
changeset 10403
ea3320d5e8e9
parent 10373
093dcebe5ecb
child 10438
4cd7e5a8b3cf
--- 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.

eric ide

mercurial