diff options
author | 2008-06-12 07:16:14 +0000 | |
---|---|---|
committer | 2008-06-12 07:16:14 +0000 | |
commit | 1b5598b0a90de485ec9ab0224ee50b4ff9a09a17 (patch) | |
tree | a5eb3f4974936ae4cdaea06a3c8387066192a1c9 /usr.bin/cvs/update.c | |
parent | Bring biomem diff back into the tree after the nfs_bio.c fix went in. (diff) | |
download | wireguard-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/update.c')
-rw-r--r-- | usr.bin/cvs/update.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c index 9f6b3f3caf4..fe21ebe49a1 100644 --- a/usr.bin/cvs/update.c +++ b/usr.bin/cvs/update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.150 2008/06/11 19:10:02 joris Exp $ */ +/* $OpenBSD: update.c,v 1.151 2008/06/12 07:16:14 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -252,7 +252,8 @@ cvs_update_leavedir(struct cvs_file *cf) bufsize = st.st_blksize; if (st.st_size > SIZE_MAX) - fatal("cvs_update_leavedir: %s: file size too big", cf->file_name); + fatal("cvs_update_leavedir: %s: file size too big", + cf->file_name); isempty = 1; buf = xmalloc(bufsize); @@ -295,8 +296,8 @@ cvs_update_leavedir(struct cvs_file *cf) xfree(buf); - if ((isempty == 1 && prune_dirs == 1) || (cvs_server_active == 1 && - cvs_cmdop == CVS_OP_CHECKOUT)) { + if ((isempty == 1 && prune_dirs == 1) || + (cvs_server_active == 1 && cvs_cmdop == CVS_OP_CHECKOUT)) { /* XXX */ cvs_rmdir(cf->file_path); |