eric6/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py

changeset 8220
006ee31b4835
parent 8218
7c09585bd960
child 8222
5994b80b8760
--- a/eric6/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py	Sun Apr 11 11:34:32 2021 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py	Sun Apr 11 12:38:16 2021 +0200
@@ -345,8 +345,7 @@
                         allFiles = self.client.status(
                             name, recurse=recurse, get_all=verbose,
                             ignore=True, update=update)
-                        counter = 0
-                        for file in allFiles:
+                        for counter, file in enumerate(allFiles):
                             uptodate = True
                             if (
                                 file.repos_text_status !=
@@ -440,10 +439,8 @@
                                 file.entry.commit_author if file.entry else "",
                                 file.path
                             )
-                            counter += 1
-                            if counter == 30:
+                            if counter % 30 == 0:
                                 # check for cancel every 30 items
-                                counter = 0
                                 if self._clientCancelCallback():
                                     break
                         if self._clientCancelCallback():

eric ide

mercurial