Mercurial > hg
comparison tests/test-serve.t @ 45839:ebee234d952a
errors: set detailed exit code to 100 for some remote errors
This is per https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan.
Differential Revision: https://phab.mercurial-scm.org/D9309
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 22 Oct 2020 13:31:34 -0700 |
parents | 9a062913bab6 |
children | a8deb9dc39da |
comparison
equal
deleted
inserted
replaced
45838:ae00e170f2d1 | 45839:ebee234d952a |
---|---|
88 > --pid-file=hg.pid -E errors.log | 88 > --pid-file=hg.pid -E errors.log |
89 $ cat hg.pid >> "$DAEMON_PIDS" | 89 $ cat hg.pid >> "$DAEMON_PIDS" |
90 | 90 |
91 $ hg id http://localhost:$HGPORT/some/dir7 | 91 $ hg id http://localhost:$HGPORT/some/dir7 |
92 abort: HTTP Error 404: Not Found | 92 abort: HTTP Error 404: Not Found |
93 [255] | 93 [100] |
94 $ hg id http://localhost:$HGPORT/some | 94 $ hg id http://localhost:$HGPORT/some |
95 abort: HTTP Error 404: Not Found | 95 abort: HTTP Error 404: Not Found |
96 [255] | 96 [100] |
97 | 97 |
98 $ cat access.log errors.log | 98 $ cat access.log errors.log |
99 $LOCALIP - - [$LOGDATE$] "GET /some/dir7?cmd=capabilities HTTP/1.1" 404 - (glob) | 99 $LOCALIP - - [$LOGDATE$] "GET /some/dir7?cmd=capabilities HTTP/1.1" 404 - (glob) |
100 $LOCALIP - - [$LOGDATE$] "GET /some?cmd=capabilities HTTP/1.1" 404 - (glob) | 100 $LOCALIP - - [$LOGDATE$] "GET /some?cmd=capabilities HTTP/1.1" 404 - (glob) |
101 | 101 |