src/eric7/Plugins/VcsPlugins/vcsPySvn/subversion.py

branch
eric7
changeset 10403
ea3320d5e8e9
parent 10373
093dcebe5ecb
child 10438
4cd7e5a8b3cf
--- a/src/eric7/Plugins/VcsPlugins/vcsPySvn/subversion.py	Mon Dec 11 15:11:32 2023 +0100
+++ b/src/eric7/Plugins/VcsPlugins/vcsPySvn/subversion.py	Tue Dec 12 09:35:39 2023 +0100
@@ -216,7 +216,7 @@
                 os.chdir(os.path.dirname(project.ppath))
                 cwdIsPpath = True
             tmpProjectDir = "{0}_tmp".format(project.ppath)
-            shutil.rmtree(tmpProjectDir, True)
+            shutil.rmtree(tmpProjectDir, ignore_errors=True)
             os.rename(project.ppath, tmpProjectDir)
             os.makedirs(project.ppath)
             self.vcsCheckout(vcsDataDict, project.ppath)
@@ -241,7 +241,7 @@
                     cwdIsPpath = True
                 else:
                     cwdIsPpath = False
-                shutil.rmtree(project.ppath, True)
+                shutil.rmtree(project.ppath, ignore_errors=True)
                 os.rename(tmpProjectDir, project.ppath)
                 project.setProjectData("None", dataKey="VCS")
                 project.vcs = None
@@ -249,7 +249,7 @@
                 project.saveProject()
                 project.closeProject()
                 return
-            shutil.rmtree(tmpProjectDir, True)
+            shutil.rmtree(tmpProjectDir, ignore_errors=True)
             project.closeProject(noSave=True)
             project.openProject(pfn)
 
@@ -298,7 +298,7 @@
                 shutil.copytree(projectDir, os.path.join(tmpDir, project))
         except OSError:
             if os.path.isdir(tmpDir):
-                shutil.rmtree(tmpDir, True)
+                shutil.rmtree(tmpDir, ignore_errors=True)
             return False, False
 
         cwd = os.getcwd()
@@ -333,7 +333,7 @@
             dlg.exec()
         os.chdir(cwd)
 
-        shutil.rmtree(tmpDir, True)
+        shutil.rmtree(tmpDir, ignore_errors=True)
         return status, False
 
     def vcsCheckout(self, vcsDataDict, projectDir, noDialog=False):

eric ide

mercurial