diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-06-07 15:13:26 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-06-07 15:13:26 +0000 |
commit | 328c2d5331ba3a3addf444b642bb7a6e872be71e (patch) | |
tree | e987cface5d6b06ead0a29338d85ac3ccd22aa32 /usr.bin | |
parent | cd52ed9727bd60e1f7a2ea6cc9cce29d0b98a5fa (diff) |
enable -P option .. joris@ ok
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/checkout.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c index 7cee68f749c..e613d78414b 100644 --- a/usr.bin/cvs/checkout.c +++ b/usr.bin/cvs/checkout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: checkout.c,v 1.28 2005/05/31 08:58:47 xsa Exp $ */ +/* $OpenBSD: checkout.c,v 1.29 2005/06/07 15:13:25 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -201,6 +201,10 @@ cvs_checkout_pre_exec(struct cvsroot *root) if (!shorten && cvs_sendarg(root, "-N", 0) < 0) return (CVS_EX_PROTO); + if ((cvs_cmd_update.cmd_flags & CVS_CMD_PRUNEDIRS) && + (cvs_sendarg(root, "-P", 0) < 0)) + return (CVS_EX_PROTO); + for (i = 0; i < co_nmod; i++) if (cvs_sendarg(root, co_mods[i], 0) < 0) return (CVS_EX_PROTO); |