--- a/mercurial/graphmod.py Wed May 15 21:02:32 2019 +0300
+++ b/mercurial/graphmod.py Tue Oct 16 04:59:36 2018 -0700
@@ -469,22 +469,6 @@
while len(text) < len(lines):
text.append("")
- if any(len(char) > 1 for char in edgemap.values()):
- # limit drawing an edge to the first or last N lines of the current
- # section the rest of the edge is drawn like a parent line.
- parent = state['styles'][PARENT][-1:]
- def _drawgp(char, i):
- # should a grandparent character be drawn for this line?
- if len(char) < 2:
- return True
- num = int(char[:-1])
- # either skip first num lines or take last num lines, based on sign
- return -num <= i if num < 0 else (len(lines) - i) <= num
- for i, line in enumerate(lines):
- line[:] = [c[-1:] if _drawgp(c, i) else parent for c in line]
- edgemap.update(
- (e, (c if len(c) < 2 else parent)) for e, c in edgemap.items())
-
# print lines
indentation_level = max(ncols, ncols + coldiff)
lines = ["%-*s " % (2 * indentation_level, "".join(line)) for line in lines]