Mercurial > hg
changeset 21776:c4633e287c56
keyword: define optionalrepo in command decorator
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 04 May 2014 22:16:56 -0700 |
parents | 5403245edb3a |
children | 17d1ac452127 |
files | hgext/keyword.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/keyword.py Sun May 04 22:16:05 2014 -0700 +++ b/hgext/keyword.py Sun May 04 22:16:56 2014 -0700 @@ -89,7 +89,6 @@ from mercurial.i18n import _ import os, re, shutil, tempfile -commands.optionalrepo += ' kwdemo' commands.inferrepo += ' kwexpand kwfiles kwshrink' cmdtable = {} @@ -363,7 +362,8 @@ [('d', 'default', None, _('show default keyword template maps')), ('f', 'rcfile', '', _('read maps from rcfile'), _('FILE'))], - _('hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...')) + _('hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...'), + optionalrepo=True) def demo(ui, repo, *args, **opts): '''print [keywordmaps] configuration and an expansion example