=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/checkout.c,v retrieving revision 1.76 retrieving revision 1.77 diff -c -r1.76 -r1.77 *** src/usr.bin/cvs/checkout.c 2007/01/14 22:20:46 1.76 --- src/usr.bin/cvs/checkout.c 2007/01/16 08:17:27 1.77 *************** *** 1,4 **** ! /* $OpenBSD: checkout.c,v 1.76 2007/01/14 22:20:46 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: checkout.c,v 1.77 2007/01/16 08:17:27 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 38,44 **** "Checkout a working copy of a repository", "[-AcflNnPpRs] [-D date | -r tag] [-d dir] [-j rev] [-k mode] " "[-t id] module ...", ! "AcD:d:fj:k:lNnPRr:st:", NULL, cvs_checkout }; --- 38,44 ---- "Checkout a working copy of a repository", "[-AcflNnPpRs] [-D date | -r tag] [-d dir] [-j rev] [-k mode] " "[-t id] module ...", ! "AcD:d:fj:k:lNnPpRr:st:", NULL, cvs_checkout }; *************** *** 56,70 **** int cvs_checkout(int argc, char **argv) { ! int ch; while ((ch = getopt(argc, argv, cvs_cmd_checkout.cmd_opts)) != -1) { switch (ch) { case 'A': reset_stickies = 1; break; case 'P': prune_dirs = 1; break; default: fatal("%s", cvs_cmd_checkout.cmd_synopsis); --- 56,77 ---- int cvs_checkout(int argc, char **argv) { ! int ch, flags; + flags = CR_RECURSE_DIRS; + while ((ch = getopt(argc, argv, cvs_cmd_checkout.cmd_opts)) != -1) { switch (ch) { case 'A': reset_stickies = 1; break; + case 'l': + flags &= ~CR_RECURSE_DIRS; + break; case 'P': prune_dirs = 1; + break; + case 'R': break; default: fatal("%s", cvs_cmd_checkout.cmd_synopsis);