Package: hgview-curses
Version: 1.9.0-1
Followup-For: Bug #825248

Hello,
"echars" is of wrong type "tuple" in previous pacth, updated with this new patch


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'work'), (500, 'testing'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages hgview-curses depends on:
ii  hgview-common     1.9.0-1
ii  python            2.7.11-1
ii  python-pygments   2.1.3+dfsg-1
ii  python-pyinotify  0.9.5-1
ii  python-urwid      1.3.1-2+b1

hgview-curses recommends no packages.

hgview-curses suggests no packages.

-- no debconf information
--- /usr/lib/python2.7/dist-packages/hgviewlib/curses/graphlog.py.orig	2016-05-25 12:52:57.196775537 +0800
+++ /usr/lib/python2.7/dist-packages/hgviewlib/curses/graphlog.py	2016-05-25 13:22:33.085859338 +0800
@@ -312,6 +312,10 @@
     # some support of obsolete relation display
     # assert -2 < coldiff < 2
     assert height > 0
+
+    echars = []
+    echars.extend(('|', ' ') * (ncols + coldiff))
+
     if coldiff == -1:
         _fixlongrightedges(edges)
     # add_padding_line says whether to rewrite
@@ -323,7 +327,7 @@
     # nodeline is the line containing the node character (typically o)
     nodeline = ["|", " "] * idx
     nodeline.extend([('GraphLog.node', char), " "])
-    nodeline.extend(_getnodelineedgestail(idx, state[1], ncols, coldiff,
+    nodeline.extend(_getnodelineedgestail(echars, idx, state[1], ncols, coldiff,
                                             state[0], fix_nodeline_tail))
     # shift_interline is the line containing the non-vertical
     # edges between this entry and the next
@@ -340,7 +344,7 @@
     shift_interline.extend(n_spaces * [" "])
     shift_interline.extend([edge_ch, " "] * (ncols - idx - 1))
     # draw edges from the current node to its parents
-    _drawedges(edges, nodeline, shift_interline)
+    _drawedges(echars, edges, nodeline, shift_interline)
     # lines is the list of all graph lines to print
     lines = [nodeline]
     if add_padding_line:

Reply via email to