##// END OF EJS Templates
keyword: define optionalrepo in command decorator
Gregory Szorc -
r21776:c4633e28 default
parent child Browse files
Show More
@@ -89,7 +89,6 from mercurial.hgweb import webcommands
89 from mercurial.i18n import _
89 from mercurial.i18n import _
90 import os, re, shutil, tempfile
90 import os, re, shutil, tempfile
91
91
92 commands.optionalrepo += ' kwdemo'
93 commands.inferrepo += ' kwexpand kwfiles kwshrink'
92 commands.inferrepo += ' kwexpand kwfiles kwshrink'
94
93
95 cmdtable = {}
94 cmdtable = {}
@@ -363,7 +362,8 def _kwfwrite(ui, repo, expand, *pats, *
363 [('d', 'default', None, _('show default keyword template maps')),
362 [('d', 'default', None, _('show default keyword template maps')),
364 ('f', 'rcfile', '',
363 ('f', 'rcfile', '',
365 _('read maps from rcfile'), _('FILE'))],
364 _('read maps from rcfile'), _('FILE'))],
366 _('hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...'))
365 _('hg kwdemo [-d] [-f RCFILE] [TEMPLATEMAP]...'),
366 optionalrepo=True)
367 def demo(ui, repo, *args, **opts):
367 def demo(ui, repo, *args, **opts):
368 '''print [keywordmaps] configuration and an expansion example
368 '''print [keywordmaps] configuration and an expansion example
369
369
General Comments 0
You need to be logged in to leave comments. Login now