Show More
@@ -13,7 +13,7 b' import os' | |||
|
13 | 13 | import re |
|
14 | 14 | |
|
15 | 15 | from ..i18n import _ |
|
16 |
from ..node import hex, |
|
|
16 | from ..node import hex, short | |
|
17 | 17 | |
|
18 | 18 | from .common import ( |
|
19 | 19 | ErrorResponse, |
@@ -1314,24 +1314,6 b' def graph(web):' | |||
|
1314 | 1314 | tree = list(item for item in graphmod.colored(dag, web.repo) |
|
1315 | 1315 | if item[1] == graphmod.CHANGESET) |
|
1316 | 1316 | |
|
1317 | def nodecurrent(ctx): | |
|
1318 | wpnodes = web.repo.dirstate.parents() | |
|
1319 | if wpnodes[1] == nullid: | |
|
1320 | wpnodes = wpnodes[:1] | |
|
1321 | if ctx.node() in wpnodes: | |
|
1322 | return '@' | |
|
1323 | return '' | |
|
1324 | ||
|
1325 | def nodesymbol(ctx): | |
|
1326 | if ctx.obsolete(): | |
|
1327 | return 'x' | |
|
1328 | elif ctx.isunstable(): | |
|
1329 | return '*' | |
|
1330 | elif ctx.closesbranch(): | |
|
1331 | return '_' | |
|
1332 | else: | |
|
1333 | return 'o' | |
|
1334 | ||
|
1335 | 1317 | def fulltree(): |
|
1336 | 1318 | pos = web.repo[graphtop].rev() |
|
1337 | 1319 | tree = [] |
@@ -1344,7 +1326,7 b' def graph(web):' | |||
|
1344 | 1326 | |
|
1345 | 1327 | def jsdata(): |
|
1346 | 1328 | return [{'node': pycompat.bytestr(ctx), |
|
1347 |
'graphnode': node |
|
|
1329 | 'graphnode': webutil.getgraphnode(web.repo, ctx), | |
|
1348 | 1330 | 'vertex': vtx, |
|
1349 | 1331 | 'edges': edges} |
|
1350 | 1332 | for (id, type, ctx, vtx, edges) in fulltree()] |
General Comments 0
You need to be logged in to leave comments.
Login now