eric6/Plugins/VcsPlugins/vcsPySvn/SvnStatusMonitorThread.py

changeset 7260
4cc6f121119a
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 7c017076c12e -r 4cc6f121119a eric6/Plugins/VcsPlugins/vcsPySvn/SvnStatusMonitorThread.py
--- a/eric6/Plugins/VcsPlugins/vcsPySvn/SvnStatusMonitorThread.py	Mon Sep 23 19:22:12 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsPySvn/SvnStatusMonitorThread.py	Mon Sep 23 20:03:20 2019 +0200
@@ -57,10 +57,10 @@
         
         client = pysvn.Client()
         client.exception_style = 1
-        client.callback_get_login = \
-            self.__clientLoginCallback
-        client.callback_ssl_server_trust_prompt = \
+        client.callback_get_login = self.__clientLoginCallback
+        client.callback_ssl_server_trust_prompt = (
             self.__clientSslServerTrustPromptCallback
+        )
         
         cwd = os.getcwd()
         os.chdir(self.projectDir)
@@ -72,30 +72,44 @@
             for file in allFiles:
                 uptodate = True
                 if file.repos_text_status != pysvn.wc_status_kind.none:
-                    uptodate = uptodate and \
+                    uptodate = (
+                        uptodate and
                         file.repos_text_status != pysvn.wc_status_kind.modified
+                    )
                 if file.repos_prop_status != pysvn.wc_status_kind.none:
-                    uptodate = uptodate and \
+                    uptodate = (
+                        uptodate and
                         file.repos_prop_status != pysvn.wc_status_kind.modified
+                    )
                 
                 status = ""
                 if not uptodate:
                     status = "U"
                     self.shouldUpdate = True
-                elif file.text_status == pysvn.wc_status_kind.conflicted or \
-                        file.prop_status == pysvn.wc_status_kind.conflicted:
+                elif (
+                    file.text_status == pysvn.wc_status_kind.conflicted or
+                    file.prop_status == pysvn.wc_status_kind.conflicted
+                ):
                     status = "Z"
-                elif file.text_status == pysvn.wc_status_kind.deleted or \
-                        file.prop_status == pysvn.wc_status_kind.deleted:
+                elif (
+                    file.text_status == pysvn.wc_status_kind.deleted or
+                    file.prop_status == pysvn.wc_status_kind.deleted
+                ):
                     status = "O"
-                elif file.text_status == pysvn.wc_status_kind.modified or \
-                        file.prop_status == pysvn.wc_status_kind.modified:
+                elif (
+                    file.text_status == pysvn.wc_status_kind.modified or
+                    file.prop_status == pysvn.wc_status_kind.modified
+                ):
                     status = "M"
-                elif file.text_status == pysvn.wc_status_kind.added or \
-                        file.prop_status == pysvn.wc_status_kind.added:
+                elif (
+                    file.text_status == pysvn.wc_status_kind.added or
+                    file.prop_status == pysvn.wc_status_kind.added
+                ):
                     status = "A"
-                elif file.text_status == pysvn.wc_status_kind.replaced or \
-                        file.prop_status == pysvn.wc_status_kind.replaced:
+                elif (
+                    file.text_status == pysvn.wc_status_kind.replaced or
+                    file.prop_status == pysvn.wc_status_kind.replaced
+                ):
                     status = "R"
                 if status:
                     states[file.path] = status

eric ide

mercurial