diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2009-01-28 17:40:14 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2009-01-28 17:40:14 +0000 |
commit | d058f8854954d42c4bf717313777ff43aa7e53ce (patch) | |
tree | c32b1e6cdd7f7e435b017366ea346e011d08abaa /usr.bin | |
parent | 8b9efb273c5ec82bdb0a1aff73776f3f649e7481 (diff) |
enable -d for the export command.
ok joris@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/checkout.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c index 01bf1e78b69..8e77f67078d 100644 --- a/usr.bin/cvs/checkout.c +++ b/usr.bin/cvs/checkout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: checkout.c,v 1.156 2008/07/08 12:29:58 joris Exp $ */ +/* $OpenBSD: checkout.c,v 1.157 2009/01/28 17:40:13 pyr Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -181,6 +181,15 @@ cvs_export(int argc, char **argv) while ((ch = getopt(argc, argv, cvs_cmd_export.cmd_opts)) != -1) { switch (ch) { + case 'd': + if (dflag != NULL) + fatal("-d specified two or more times"); + dflag = optarg; + checkout_target_dir = dflag; + + if (cvs_server_active == 1) + disable_fast_checkout = 1; + break; case 'k': koptstr = optarg; kflag = rcs_kflag_get(koptstr); |