Show More
@@ -31,6 +31,7 b' from .. import (' | |||
|
31 | 31 | encoding, |
|
32 | 32 | error, |
|
33 | 33 | graphmod, |
|
34 | pycompat, | |
|
34 | 35 | revset, |
|
35 | 36 | revsetlang, |
|
36 | 37 | scmutil, |
@@ -1247,7 +1248,7 b' def graph(web, req, tmpl):' | |||
|
1247 | 1248 | for (id, type, ctx, vtx, edges) in tree: |
|
1248 | 1249 | if type != graphmod.CHANGESET: |
|
1249 | 1250 | continue |
|
1250 | node = str(ctx) | |
|
1251 | node = pycompat.bytestr(ctx) | |
|
1251 | 1252 | age = encodestr(templatefilters.age(ctx.date())) |
|
1252 | 1253 | desc = templatefilters.firstline(encodestr(ctx.description())) |
|
1253 | 1254 | desc = url.escape(templatefilters.nonempty(desc)) |
@@ -1303,7 +1304,7 b' def graph(web, req, tmpl):' | |||
|
1303 | 1304 | canvasheight=canvasheight, bg_height=bg_height, |
|
1304 | 1305 | # {jsdata} will be passed to |json, so it must be in utf-8 |
|
1305 | 1306 | jsdata=lambda **x: graphdata(True, encoding.fromlocal), |
|
1306 | nodes=lambda **x: graphdata(False, str), | |
|
1307 | nodes=lambda **x: graphdata(False, pycompat.bytestr), | |
|
1307 | 1308 | node=ctx.hex(), changenav=changenav) |
|
1308 | 1309 | |
|
1309 | 1310 | def _getdoc(e): |
General Comments 0
You need to be logged in to leave comments.
Login now