show revsion tag, if any
This commit is contained in:
parent
9917e2f545
commit
5cbef3a735
@ -28,7 +28,10 @@ def _bootstrap():
|
||||
ui = hgui.ui()
|
||||
repository = localrepository(ui, join(conts, '..'))
|
||||
#repository = localrepository(ui, conts)
|
||||
ctx = repository['tip']
|
||||
ctx = repository['.']
|
||||
if ctx.tags() and ctx.tags() != ['tip']:
|
||||
revision = ' '.join(ctx.tags())
|
||||
else:
|
||||
revision = '%(num)s:%(id)s' % {
|
||||
'num': ctx.rev(), 'id': shorthex(ctx.node())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user