diff mercurial/graphmod.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
line wrap: on
line diff
--- a/mercurial/graphmod.py	Mon Jul 22 16:49:38 2024 +0200
+++ b/mercurial/graphmod.py	Tue Jul 23 10:02:46 2024 +0200
@@ -133,7 +133,8 @@
     else:
         getconf = lambda rev: {}
 
-    for cur, type, data, parents in dag:
+    for (cur, type, data, parents) in dag:
+
         # Compute seen and next
         if cur not in seen:
             seen.append(cur)  # new head
@@ -243,7 +244,7 @@
 
 
 def _fixlongrightedges(edges):
-    for i, (start, end) in enumerate(edges):
+    for (i, (start, end)) in enumerate(edges):
         if end > start:
             edges[i] = (start, end + 1)
 
@@ -264,7 +265,7 @@
 
 
 def _drawedges(echars, edges, nodeline, interline):
-    for start, end in edges:
+    for (start, end) in edges:
         if start == end + 1:
             interline[2 * end + 1] = b"/"
         elif start == end - 1:
@@ -380,7 +381,7 @@
     this function can be monkey-patched by extensions to alter graph display
     without needing to mimic all of the edge-fixup logic in ascii()
     """
-    for ln, logstr in graph:
+    for (ln, logstr) in graph:
         ui.write((ln + logstr).rstrip() + b"\n")