Mercurial > hg
diff contrib/chg/chg.c @ 30741:fde9692a02c0
chg: remove getpager support
We have enough bits to switch to the new chg pager code path in runcommand.
So just remove the legacy getpager support.
This is a red-only patch, and will break chg's pager support temporarily.
author | Jun Wu <quark@fb.com> |
---|---|
date | Tue, 10 Jan 2017 06:59:39 +0800 |
parents | baee0f47b533 |
children | a68510b69f41 |
line wrap: on
line diff
--- a/contrib/chg/chg.c Tue Jan 10 06:59:31 2017 +0800 +++ b/contrib/chg/chg.c Tue Jan 10 06:59:39 2017 +0800 @@ -429,10 +429,6 @@ } setupsignalhandler(hgc_peerpid(hgc), hgc_peerpgid(hgc)); - const char *pagercmd = hgc_getpager(hgc, argv + 1, argc - 1); - pid_t pagerpid = setuppager(pagercmd); - if (pagerpid) - hgc_attachio(hgc); /* reattach to pager */ int exitcode = hgc_runcommand(hgc, argv + 1, argc - 1); restoresignalhandler(); hgc_close(hgc);