My followup patch wants to modify the environment before we call setenv on the
chg server process (to add items), and that won't be handled properly if we use
envp (which isn't modified by putenv).
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
Comment Actions
I don't know about the code which this series touch, but since D7550 already made to 5.3rc, should this series be targeted for stable branch?
Comment Actions
{
if (getenv("CHGDEBUG")) enabledebugmsg();@@ -429,7 +431,7 @@
hgc = connectcmdserver(&opts); if (!hgc) abortmsg("cannot open hg client");
- hgc_setenv(hgc, envp);
+ hgc_setenv(hgc);
I prefer passing in (const char**)environ to hgc_setenv().