Show More
@@ -392,12 +392,19 b' def showgraphnode(context, mapping):' | |||||
392 | return getgraphnode(repo, ctx) |
|
392 | return getgraphnode(repo, ctx) | |
393 |
|
393 | |||
394 | def getgraphnode(repo, ctx): |
|
394 | def getgraphnode(repo, ctx): | |
|
395 | return getgraphnodecurrent(repo, ctx) or getgraphnodesymbol(ctx) | |||
|
396 | ||||
|
397 | def getgraphnodecurrent(repo, ctx): | |||
395 | wpnodes = repo.dirstate.parents() |
|
398 | wpnodes = repo.dirstate.parents() | |
396 | if wpnodes[1] == nullid: |
|
399 | if wpnodes[1] == nullid: | |
397 | wpnodes = wpnodes[:1] |
|
400 | wpnodes = wpnodes[:1] | |
398 | if ctx.node() in wpnodes: |
|
401 | if ctx.node() in wpnodes: | |
399 | return '@' |
|
402 | return '@' | |
400 | elif ctx.obsolete(): |
|
403 | else: | |
|
404 | return '' | |||
|
405 | ||||
|
406 | def getgraphnodesymbol(ctx): | |||
|
407 | if ctx.obsolete(): | |||
401 | return 'x' |
|
408 | return 'x' | |
402 | elif ctx.isunstable(): |
|
409 | elif ctx.isunstable(): | |
403 | return '*' |
|
410 | return '*' |
General Comments 0
You need to be logged in to leave comments.
Login now