eric6/Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py

changeset 8259
2bbec88047dd
parent 8234
fcb6b4b96274
child 8273
698ae46f40a4
--- a/eric6/Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py	Wed Apr 21 17:56:12 2021 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py	Wed Apr 21 19:40:50 2021 +0200
@@ -217,15 +217,16 @@
         
         changes = []
         for changedPath in changedPaths:
-            if changedPath["copyfrom_path"] is None:
-                copyPath = ""
-            else:
-                copyPath = changedPath["copyfrom_path"]
-            if changedPath["copyfrom_revision"] is None:
-                copyRev = ""
-            else:
-                copyRev = "{0:7d}".format(
-                    changedPath["copyfrom_revision"].number)
+            copyPath = (
+                ""
+                if changedPath["copyfrom_path"] is None else
+                changedPath["copyfrom_path"]
+            )
+            copyRev = (
+                ""
+                if changedPath["copyfrom_revision"] is None else
+                "{0:7d}".format(changedPath["copyfrom_revision"].number)
+            )
             change = {
                 "action": changedPath["action"],
                 "path": changedPath["path"],
@@ -292,11 +293,12 @@
                 with E5MutexLocker(self.vcs.vcsExecutionMutex):
                     while fetched < limit:
                         flimit = min(fetchLimit, limit - fetched)
-                        if fetched == 0:
-                            revstart = start
-                        else:
-                            revstart = pysvn.Revision(
-                                pysvn.opt_revision_kind.number, nextRev)
+                        revstart = (
+                            start
+                            if fetched == 0 else
+                            pysvn.Revision(pysvn.opt_revision_kind.number,
+                                           nextRev)
+                        )
                         allLogs = self.client.log(
                             self.fname, revision_start=revstart,
                             discover_changed_paths=True, limit=flimit + 1,

eric ide

mercurial