chg: just forward --time to command server
authorYuya Nishihara <yuya@tcha.org>
Sat, 07 Oct 2017 22:07:10 +0900
changeset 34531 50788d1ae6cc
parent 34530 ed5acd3fd7e1
child 34532 b09b3eaf9c96
chg: just forward --time to command server Since we've removed the use of atexit in de5c9d0e02ea, --time just works.
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[])