[PATCH 1 of 2] server: refactor 'daemon_postexec' instructions into a dictionary
Yuya Nishihara
yuya at tcha.org
Sat Mar 31 06:07:47 EDT 2018
On Fri, 30 Mar 2018 23:39:51 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1522466506 14400
> # Fri Mar 30 23:21:46 2018 -0400
> # Node ID 6e77d0a68122a6513521c94c4b8256b7e6da6f93
> # Parent 45aa79668d4ee38866b0829786da076ef59b0381
> server: refactor 'daemon_postexec' instructions into a dictionary
Queued, thanks.
> + if opts['daemon_postexec']:
> + for inst in opts['daemon_postexec']:
> + if inst.startswith('unlink:'):
> + postexecargs['unlink'] = inst[7:]
> + elif inst.startswith('chdir:'):
> + postexecargs['chdir'] = inst[6:]
> + elif inst != 'none':
> + raise error.Abort(_('invalid value for --daemon-postexec: %s')
> + % inst)
[...]
> - if opts['daemon_postexec']:
> + if postexecargs:
Dropped this change since --daemon-postexec argument may be 'none', but it
should still be daemonized.
More information about the Mercurial-devel
mailing list