Mercurial > hg
changeset 34531:50788d1ae6cc
chg: just forward --time to command server
Since we've removed the use of atexit in de5c9d0e02ea, --time just works.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 07 Oct 2017 22:07:10 +0900 |
parents | ed5acd3fd7e1 |
children | b09b3eaf9c96 |
files | contrib/chg/chg.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/chg/chg.c Mon Oct 09 02:30:23 2017 -0700 +++ b/contrib/chg/chg.c Sat Oct 07 22:07:10 2017 +0900 @@ -369,7 +369,6 @@ SERVE = 1, DAEMON = 2, SERVEDAEMON = SERVE | DAEMON, - TIME = 4, }; unsigned int state = 0; int i; @@ -381,11 +380,8 @@ else if (strcmp("-d", argv[i]) == 0 || strcmp("--daemon", argv[i]) == 0) state |= DAEMON; - else if (strcmp("--time", argv[i]) == 0) - state |= TIME; } - return (state & TIME) == TIME || - (state & SERVEDAEMON) == SERVEDAEMON; + return (state & SERVEDAEMON) == SERVEDAEMON; } static void execoriginalhg(const char *argv[])