comparison mercurial/commands.py @ 22553:67b6b82a6bbe

tags: change field name of formatter output to be the same as log command Since -T option is not public yet, this won't break backward compatibility.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 21 Sep 2014 12:46:23 +0900
parents bb14cca8c4e4
children bfc50ff55f3f
comparison
equal deleted inserted replaced
22552:bb14cca8c4e4 22553:67b6b82a6bbe
6011 tagtype = 'local' 6011 tagtype = 'local'
6012 6012
6013 fm.startitem() 6013 fm.startitem()
6014 fm.write('tag', '%s', t, label=label) 6014 fm.write('tag', '%s', t, label=label)
6015 fmt = " " * (30 - encoding.colwidth(t)) + ' %5d:%s' 6015 fmt = " " * (30 - encoding.colwidth(t)) + ' %5d:%s'
6016 fm.condwrite(not ui.quiet, 'rev id', fmt, 6016 fm.condwrite(not ui.quiet, 'rev node', fmt,
6017 repo.changelog.rev(n), hn, label=label) 6017 repo.changelog.rev(n), hn, label=label)
6018 fm.condwrite(ui.verbose and tagtype, 'type', ' %s', 6018 fm.condwrite(ui.verbose and tagtype, 'type', ' %s',
6019 tagtype, label=label) 6019 tagtype, label=label)
6020 fm.plain('\n') 6020 fm.plain('\n')
6021 fm.end() 6021 fm.end()