comparison contrib/chg/chg.c @ 28327:3ab370f84a23

chg: drop progress.assume-tty config It was necessary to go through progress.uisetup() to set up the progressui wrapper. Since the progress extension has got into the core, progress.assume-tty is no longer necessary.
author Jun Wu <quark@fb.com>
date Mon, 29 Feb 2016 11:43:25 +0000
parents 2ab59ac06b76
children 2f0f352d4196
comparison
equal deleted inserted replaced
28326:ea400a4f32e6 28327:3ab370f84a23
214 "--cmdserver", "chgunix", 214 "--cmdserver", "chgunix",
215 "--address", opts->sockname, 215 "--address", opts->sockname,
216 "--daemon-postexec", "none", 216 "--daemon-postexec", "none",
217 "--pid-file", opts->pidfile, 217 "--pid-file", opts->pidfile,
218 "--config", "extensions.chgserver=", 218 "--config", "extensions.chgserver=",
219 /* wrap root ui so that it can be disabled/enabled by config */
220 "--config", "progress.assume-tty=1",
221 }; 219 };
222 size_t baseargvsize = sizeof(baseargv) / sizeof(baseargv[0]); 220 size_t baseargvsize = sizeof(baseargv) / sizeof(baseargv[0]);
223 size_t argsize = baseargvsize + opts->argsize + 1; 221 size_t argsize = baseargvsize + opts->argsize + 1;
224 222
225 const char **argv = mallocx(sizeof(char *) * argsize); 223 const char **argv = mallocx(sizeof(char *) * argsize);