diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-11-03 15:40:41 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-11-03 15:40:41 +0000 |
commit | 9970ff4e4db4f43b422de47b795e18016ea55b6e (patch) | |
tree | f6f1292ec6f623fd13a2b5f3765256b508438156 | |
parent | 9b125c52cc2189871cd44ae647d5d7420416561b (diff) |
- implement `-M' option.
-rw-r--r-- | usr.bin/rcs/co.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c index 059a85660dc..657ecc6403b 100644 --- a/usr.bin/rcs/co.c +++ b/usr.bin/rcs/co.c @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.25 2005/11/02 20:44:50 niallo Exp $ */ +/* $OpenBSD: co.c,v 1.26 2005/11/03 15:40:40 niallo Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -59,7 +59,7 @@ checkout_main(int argc, char **argv) exit (1); } - while ((ch = rcs_getopt(argc, argv, "f::l::p::qr::s:u::V")) != -1) { + while ((ch = rcs_getopt(argc, argv, "f::l::M::p::qr::s:u::V")) != -1) { switch (ch) { case 'f': rcs_set_rev(rcs_optarg, &rev); @@ -69,6 +69,10 @@ checkout_main(int argc, char **argv) rcs_set_rev(rcs_optarg, &rev); flags |= CO_LOCK; break; + case 'M': + rcs_set_rev(rcs_optarg, &rev); + flags |= CO_REVDATE; + break; case 'p': rcs_set_rev(rcs_optarg, &rev); pipeout = 1; |