hgext3rd/topic/stack.py
changeset 4656 dbf676c86244
parent 4655 bb0a5beb0ad8
child 4657 c24dabf8e848
equal deleted inserted replaced
4655:bb0a5beb0ad8 4656:dbf676c86244
   363                 fm.plain('              ')
   363                 fm.plain('              ')
   364         else:
   364         else:
   365             fm.write('stack_index', '%s%%d' % prefix, idx,
   365             fm.write('stack_index', '%s%%d' % prefix, idx,
   366                      label=labelsgen('topic.stack.index', states))
   366                      label=labelsgen('topic.stack.index', states))
   367             if ui.verbose:
   367             if ui.verbose:
   368                 fm.write('node', '(%s)', short(ctx.node()),
   368                 fm.write('node', '(%s)', fm.hexfunc(ctx.node()),
   369                          label=labelsgen('topic.stack.shortnode', states))
   369                          label=labelsgen('topic.stack.shortnode', states))
       
   370             else:
       
   371                 fm.data(node=fm.hexfunc(ctx.node()))
   370         fm.write('symbol', '%s', symbol,
   372         fm.write('symbol', '%s', symbol,
   371                  label=labelsgen('topic.stack.state', states))
   373                  label=labelsgen('topic.stack.state', states))
   372         fm.plain(' ')
   374         fm.plain(' ')
   373         fm.write('desc', '%s', ctx.description().splitlines()[0],
   375         fm.write('desc', '%s', ctx.description().splitlines()[0],
   374                  label=labelsgen('topic.stack.desc', states))
   376                  label=labelsgen('topic.stack.desc', states))