Mercurial > hg
diff contrib/chg/chg.c @ 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 | ca7af5d15b21 |
children | 9724f54923ec |
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[])