Show More
@@ -190,13 +190,22 static void unlockcmdserver(struct cmdse | |||
|
190 | 190 | opts->lockfd = -1; |
|
191 | 191 | } |
|
192 | 192 | |
|
193 | static void execcmdserver(const struct cmdserveropts *opts) | |
|
193 | static const char *gethgcmd(void) | |
|
194 | 194 | { |
|
195 |
const char *hgcmd = |
|
|
195 | static const char *hgcmd = NULL; | |
|
196 | if (!hgcmd) { | |
|
197 | hgcmd = getenv("CHGHG"); | |
|
196 | 198 | if (!hgcmd || hgcmd[0] == '\0') |
|
197 | 199 | hgcmd = getenv("HG"); |
|
198 | 200 | if (!hgcmd || hgcmd[0] == '\0') |
|
199 | 201 | hgcmd = "hg"; |
|
202 | } | |
|
203 | return hgcmd; | |
|
204 | } | |
|
205 | ||
|
206 | static void execcmdserver(const struct cmdserveropts *opts) | |
|
207 | { | |
|
208 | const char *hgcmd = gethgcmd(); | |
|
200 | 209 | |
|
201 | 210 | const char *baseargv[] = { |
|
202 | 211 | hgcmd, |
General Comments 0
You need to be logged in to leave comments.
Login now