comparison hgext/show.py @ 31858:ad366d57d574

show: tweak plain abort language for clarity
author Ryan McElroy <rmcelroy@fb.com>
date Fri, 07 Apr 2017 10:26:13 -0700
parents 45761ef1bc93
children 8e282aa3c3ff
comparison
equal deleted inserted replaced
31857:08fbc97d1364 31858:ad366d57d574
71 71
72 List of available views: 72 List of available views:
73 73
74 """ 74 """
75 if ui.plain() and not template: 75 if ui.plain() and not template:
76 raise error.Abort(_('"hg show" cannot be used in plain mode because ' 76 hint = _('invoke with -T/--template to control output format')
77 'output is not stable'), 77 raise error.Abort(_('must specify a template in plain mode'), hint=hint)
78 hint=_('unset HGPLAIN and invoke with -T/--template '
79 'to control output'))
80 78
81 views = showview._table 79 views = showview._table
82 80
83 if not view: 81 if not view:
84 ui.pager('show') 82 ui.pager('show')