=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/checkout.c,v retrieving revision 1.132 retrieving revision 1.133 diff -c -r1.132 -r1.133 *** src/usr.bin/cvs/checkout.c 2008/02/09 12:20:33 1.132 --- src/usr.bin/cvs/checkout.c 2008/02/09 12:48:23 1.133 *************** *** 1,4 **** ! /* $OpenBSD: checkout.c,v 1.132 2008/02/09 12:20:33 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: checkout.c,v 1.133 2008/02/09 12:48:23 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 43,51 **** --- 43,53 ---- static int Aflag = 0; static char *dflag = NULL; static char *koptstr = NULL; + static char *dateflag = NULL; static int nflag = 0; + char *checkout_target_dir = NULL; time_t cvs_specified_date; struct cvs_cmd cvs_cmd_checkout = { *************** *** 87,98 **** cvs_modules_list(); exit(0); case 'D': ! cvs_specified_date = cvs_date_parse(optarg); break; case 'd': if (dflag != NULL) fatal("-d specified two or more times"); dflag = optarg; break; case 'k': reset_option = 0; --- 89,102 ---- cvs_modules_list(); exit(0); case 'D': ! dateflag = optarg; ! cvs_specified_date = cvs_date_parse(dateflag); break; case 'd': if (dflag != NULL) fatal("-d specified two or more times"); dflag = optarg; + checkout_target_dir = dflag; break; case 'k': reset_option = 0; *************** *** 211,216 **** --- 215,223 ---- cvs_specified_tag); if (Aflag) cvs_client_send_request("Argument -A"); + + if (dateflag != NULL) + cvs_client_send_request("Argument -D%s", dateflag); if (kflag) cvs_client_send_request("Argument -k%s", koptstr);