Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/show.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Needs Revision | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg |
if not view: | if not view: | ||||
ui.pager('show') | ui.pager('show') | ||||
# TODO consider using formatter here so available views can be | # TODO consider using formatter here so available views can be | ||||
# rendered to custom format. | # rendered to custom format. | ||||
ui.write(_('available views:\n')) | ui.write(_('available views:\n')) | ||||
ui.write('\n') | ui.write('\n') | ||||
for name, func in sorted(views.items()): | for name, func in sorted(views.items()): | ||||
ui.write(('%s\n') % func.__doc__) | ui.write(('%s\n') % pycompat.sysbytes(func.__doc__)) | ||||
ui.write('\n') | ui.write('\n') | ||||
raise error.Abort(_('no view requested'), | raise error.Abort(_('no view requested'), | ||||
hint=_('use "hg show VIEW" to choose a view')) | hint=_('use "hg show VIEW" to choose a view')) | ||||
# TODO use same logic as dispatch to perform prefix matching. | # TODO use same logic as dispatch to perform prefix matching. | ||||
if view not in views: | if view not in views: | ||||
raise error.Abort(_('unknown view: %s') % view, | raise error.Abort(_('unknown view: %s') % view, |