Show More
@@ -549,6 +549,7 b' int main(int argc, const char *argv[], c' | |||||
549 | } |
|
549 | } | |
550 |
|
550 | |||
551 | hgclient_t *hgc; |
|
551 | hgclient_t *hgc; | |
|
552 | size_t retry = 0; | |||
552 | while (1) { |
|
553 | while (1) { | |
553 | hgc = connectcmdserver(&opts); |
|
554 | hgc = connectcmdserver(&opts); | |
554 | if (!hgc) |
|
555 | if (!hgc) | |
@@ -560,6 +561,13 b' int main(int argc, const char *argv[], c' | |||||
560 | runinstructions(&opts, insts); |
|
561 | runinstructions(&opts, insts); | |
561 | free(insts); |
|
562 | free(insts); | |
562 | hgc_close(hgc); |
|
563 | hgc_close(hgc); | |
|
564 | if (++retry > 10) | |||
|
565 | abortmsg("too many redirections.\n" | |||
|
566 | "Please make sure %s is not a wrapper which " | |||
|
567 | "changes sensitive environment variables " | |||
|
568 | "before executing hg. If you have to use a " | |||
|
569 | "wrapper, wrap chg instead of hg.", | |||
|
570 | gethgcmd()); | |||
563 | } |
|
571 | } | |
564 |
|
572 | |||
565 | setupsignalhandler(hgc_peerpid(hgc)); |
|
573 | setupsignalhandler(hgc_peerpid(hgc)); |
General Comments 0
You need to be logged in to leave comments.
Login now