summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-06-12 07:16:15 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-06-12 07:16:15 +0000
commitff05b352e851c0121dd005f16aee6d1a36088df7 (patch)
treefd53b93d52a75aa4bf4f88da4de96e8355ecec8e /usr.bin/cvs/rcs.c
parent750260e3bf10f2e3e7853d979f57c79e3d35d6f8 (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/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 0fcc3b4ddc4..62da76238c9 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.269 2008/06/10 20:30:17 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.270 2008/06/12 07:16:14 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2986,7 +2986,7 @@ rcs_rev_getbuf(RCSFILE *rfp, RCSNUM *rev, int mode)
expand = 0;
lines = rcs_rev_getlines(rfp, rev, NULL);
- bp = cvs_buf_alloc(1024);
+ bp = cvs_buf_alloc(1024 * 1024);
if (!(mode & RCS_KWEXP_NONE)) {
if (rfp->rf_expand != NULL)