summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2008-06-12 07:16:14 +0000
committerjoris <joris@openbsd.org>2008-06-12 07:16:14 +0000
commit1b5598b0a90de485ec9ab0224ee50b4ff9a09a17 (patch)
treea5eb3f4974936ae4cdaea06a3c8387066192a1c9 /usr.bin/cvs/file.c
parentBring biomem diff back into the tree after the nfs_bio.c fix went in. (diff)
downloadwireguard-openbsd-1b5598b0a90de485ec9ab0224ee50b4ff9a09a17.tar.xz
wireguard-openbsd-1b5598b0a90de485ec9ab0224ee50b4ff9a09a17.zip
completely kill the need for TMP_DIR when running checkout,
which gives us better performance among other things. this is however disabled in a few cases: 1) whenever you run checkout over an existing tree (which acts as update) 2) whenever you specify -d or a module alias we're planning on enabling this behaviour for case 2 in the future. anoncvs sysadmins now love us even more. ok tobias@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index a44cea74164..f2ac9e1fa0e 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.242 2008/06/09 22:31:24 tobias Exp $ */
+/* $OpenBSD: file.c,v 1.243 2008/06/12 07:16:14 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
@@ -46,6 +46,7 @@
#define CVS_CHAR_ISMETA(c) ((c == '*') || (c == '?') || (c == '['))
extern int print_stdout;
+extern int build_dirs;
/*
* Standard patterns to ignore.
@@ -584,7 +585,7 @@ walkrepo:
xsnprintf(fpath, sizeof(fpath), "%s/%s", cf->file_path,
CVS_PATH_STATICENTRIES);
- if (stat(fpath, &st) == -1)
+ if (stat(fpath, &st) == -1 || build_dirs == 1)
cvs_repository_getdir(repo, cf->file_path, &fl, &dl,
(cr->flags & CR_RECURSE_DIRS));
}