summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/checkout.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-05-27 15:14:28 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-05-27 15:14:28 +0000
commitd860a2dff9e1047c5a25a0814519187895502814 (patch)
tree78a6e72fc165428e8319793e4fd9a26c2c0c5693 /usr.bin/cvs/checkout.c
parent2e00d298c34bcede7950f4cc2e5c7ea7e2a4b416 (diff)
allow commands to respect the -l flag, if the -l flag is
specified certain commands will not recurse into directories. at the same time introduce a method of specifying wether or not a command should look in the repository for files.
Diffstat (limited to 'usr.bin/cvs/checkout.c')
-rw-r--r--usr.bin/cvs/checkout.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c
index b6d98afab33..c14c50e458f 100644
--- a/usr.bin/cvs/checkout.c
+++ b/usr.bin/cvs/checkout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: checkout.c,v 1.55 2006/05/27 05:59:32 joris Exp $ */
+/* $OpenBSD: checkout.c,v 1.56 2006/05/27 15:14:27 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -94,9 +94,10 @@ checkout_repository(const char *repobase, const char *wdbase)
cr.leavedir = cvs_update_leavedir;
cr.local = cvs_update_local;
cr.remote = NULL;
+ cr.flags = CR_REPO | CR_RECURSE_DIRS;
cvs_repository_lock(repobase);
- cvs_repository_getdir(repobase, wdbase, &fl, &dl);
+ cvs_repository_getdir(repobase, wdbase, &fl, &dl, 1);
cvs_file_walklist(&fl, &cr);
cvs_file_freelist(&fl);