comparison contrib/chg/chg.c @ 30513:ff7df4bb75de

chgserver: make it a core module and drop extension flags It was an extension just because there were several dependency cycles I needed to address. I don't add 'chgserver' to extensions._builtin since chgserver is considered an internal extension so nobody should enable it by their config.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 15 Oct 2016 14:30:16 +0900
parents 681fe090d82e
children 937c52f06709
comparison
equal deleted inserted replaced
30512:cc374292a561 30513:ff7df4bb75de
223 hgcmd, 223 hgcmd,
224 "serve", 224 "serve",
225 "--cmdserver", "chgunix", 225 "--cmdserver", "chgunix",
226 "--address", opts->sockname, 226 "--address", opts->sockname,
227 "--daemon-postexec", "chdir:/", 227 "--daemon-postexec", "chdir:/",
228 "--config", "extensions.chgserver=",
229 }; 228 };
230 size_t baseargvsize = sizeof(baseargv) / sizeof(baseargv[0]); 229 size_t baseargvsize = sizeof(baseargv) / sizeof(baseargv[0]);
231 size_t argsize = baseargvsize + opts->argsize + 1; 230 size_t argsize = baseargvsize + opts->argsize + 1;
232 231
233 const char **argv = mallocx(sizeof(char *) * argsize); 232 const char **argv = mallocx(sizeof(char *) * argsize);