Mercurial > public > mercurial-scm > hg-stable
diff contrib/chg/hgclient.c @ 31941:ac5527021097
chg: respect environment variables for pager
Previously chg runs the pager command without respecting its environment
variables being told to use. This patch makes it so.
author | Jun Wu <quark@fb.com> |
---|---|
date | Wed, 12 Apr 2017 16:50:23 -0700 |
parents | 1f9684fe94cc |
children | 9724f54923ec |
line wrap: on
line diff
--- a/contrib/chg/hgclient.c Mon Apr 10 17:36:40 2017 +0200 +++ b/contrib/chg/hgclient.c Wed Apr 12 16:50:23 2017 -0700 @@ -252,7 +252,7 @@ ctx->datasize = sizeof(r_n); writeblock(hgc); } else if (strcmp(args[0], "pager") == 0) { - setuppager(args[1]); + setuppager(args[1], args + 3); if (hgc->capflags & CAP_ATTACHIO) attachio(hgc); /* unblock the server */