eric6/Plugins/VcsPlugins/vcsMercurial/HgSummaryDialog.py

changeset 8220
006ee31b4835
parent 8218
7c09585bd960
child 8228
772103b14c18
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgSummaryDialog.py	Sun Apr 11 11:34:32 2021 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgSummaryDialog.py	Sun Apr 11 12:38:16 2021 +0200
@@ -224,9 +224,9 @@
         # step 2: build the output
         if infoDict:
             info = ["<table>"]
-            pindex = 0
-            for rev, node, tags, message, remarks in infoDict["parent"]:
-                pindex += 1
+            for pindex, (rev, node, tags, message, remarks) in enumerate(
+                infoDict["parent"], start=1
+            ):
                 changeset = "{0}:{1}".format(rev, node)
                 if len(infoDict["parent"]) > 1:
                     info.append(self.tr(

eric ide

mercurial