diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2008-06-12 07:16:15 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2008-06-12 07:16:15 +0000 |
commit | ff05b352e851c0121dd005f16aee6d1a36088df7 (patch) | |
tree | fd53b93d52a75aa4bf4f88da4de96e8355ecec8e /usr.bin/cvs/update.c | |
parent | 750260e3bf10f2e3e7853d979f57c79e3d35d6f8 (diff) |
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); |