# HG changeset patch # User Yuya Nishihara # Date 1507381630 -32400 # Node ID 50788d1ae6cc52c0722222e1a17f583d515ee449 # Parent ed5acd3fd7e19b92033b379580c228d88c09785f chg: just forward --time to command server Since we've removed the use of atexit in de5c9d0e02ea, --time just works. diff -r ed5acd3fd7e1 -r 50788d1ae6cc contrib/chg/chg.c --- 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[])