diff tests/test-help.t @ 21773:26d2fb899637

tests: define norepo in command decorator
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 04 May 2014 22:07:45 -0700
parents 0c6cdbb697d9
children af15de6775c7
line wrap: on
line diff
--- a/tests/test-help.t	Sun May 04 22:03:11 2014 -0700
+++ b/tests/test-help.t	Sun May 04 22:07:45 2014 -0700
@@ -639,12 +639,12 @@
   >     [('', 'longdesc', 3, 'x'*90),
   >     ('n', '', None, 'normal desc'),
   >     ('', 'newline', '', 'line1\nline2')],
-  >     'hg nohelp')
+  >     'hg nohelp',
+  >     norepo=True)
   > @command('debugoptDEP', [('', 'dopt', None, 'option is DEPRECATED')])
   > def nohelp(ui, *args, **kwargs):
   >     pass
   > 
-  > commands.norepo += ' nohelp'
   > EOF
   $ echo '[extensions]' >> $HGRCPATH
   $ echo "helpext = `pwd`/helpext.py" >> $HGRCPATH