Show More
@@ -7,7 +7,7 b'' | |||
|
7 | 7 | |
|
8 | 8 | from __future__ import absolute_import |
|
9 | 9 | |
|
10 | from .node import hex | |
|
10 | from .node import hex, nullid | |
|
11 | 11 | from . import ( |
|
12 | 12 | error, |
|
13 | 13 | hbisect, |
@@ -343,7 +343,9 b' def showfiles(**args):' | |||
|
343 | 343 | def showgraphnode(repo, ctx, **args): |
|
344 | 344 | """:graphnode: String. The character representing the changeset node in |
|
345 | 345 | an ASCII revision graph""" |
|
346 | wpnodes = [pctx.node() for pctx in repo[None].parents()] | |
|
346 | wpnodes = repo.dirstate.parents() | |
|
347 | if wpnodes[1] == nullid: | |
|
348 | wpnodes = wpnodes[:1] | |
|
347 | 349 | if ctx.node() in wpnodes: |
|
348 | 350 | return '@' |
|
349 | 351 | elif ctx.obsolete(): |
General Comments 0
You need to be logged in to leave comments.
Login now