Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 28451:c90cfe76e024
serve: accept multiple values for --daemon-postexec
The next patch will add another postexec command: chdir, which can be used
together with unlink. This patch changes the option type of --daemon-postexec
from string to list to accept multiple commands. The error message of invalid
--daemon-postexec value is also changed to include the actual invalid value.
author | Jun Wu <quark@fb.com> |
---|---|
date | Wed, 09 Mar 2016 02:07:40 +0000 |
parents | 855d9b2eea67 |
children | 2e1bceeea520 |
comparison
equal
deleted
inserted
replaced
28450:155e3308289c | 28451:c90cfe76e024 |
---|---|
6318 | 6318 |
6319 @command('^serve', | 6319 @command('^serve', |
6320 [('A', 'accesslog', '', _('name of access log file to write to'), | 6320 [('A', 'accesslog', '', _('name of access log file to write to'), |
6321 _('FILE')), | 6321 _('FILE')), |
6322 ('d', 'daemon', None, _('run server in background')), | 6322 ('d', 'daemon', None, _('run server in background')), |
6323 ('', 'daemon-postexec', '', _('used internally by daemon mode')), | 6323 ('', 'daemon-postexec', [], _('used internally by daemon mode')), |
6324 ('E', 'errorlog', '', _('name of error log file to write to'), _('FILE')), | 6324 ('E', 'errorlog', '', _('name of error log file to write to'), _('FILE')), |
6325 # use string type, then we can check if something was passed | 6325 # use string type, then we can check if something was passed |
6326 ('p', 'port', '', _('port to listen on (default: 8000)'), _('PORT')), | 6326 ('p', 'port', '', _('port to listen on (default: 8000)'), _('PORT')), |
6327 ('a', 'address', '', _('address to listen on (default: all interfaces)'), | 6327 ('a', 'address', '', _('address to listen on (default: all interfaces)'), |
6328 _('ADDR')), | 6328 _('ADDR')), |