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