summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/co.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2005-12-27 16:05:22 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2005-12-27 16:05:22 +0000
commite4827a10efc4c9779a532fdab3cfaf618c7f2ede (patch)
treefb4a252bc55e3fed10238a3f3bf32177af24e6b6 /usr.bin/rcs/co.c
parent610ad560277906f254eb396c4bf343b9b4eaca33 (diff)
- implement lazy-parsing of rcs files, that is only parse as much as we
need. this can save us much work, particularly with very large rcs files. first of a few important performance improvements. ok joris@
Diffstat (limited to 'usr.bin/rcs/co.c')
-rw-r--r--usr.bin/rcs/co.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index d2aaffaafa7..109b3f9c8d1 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.49 2005/12/23 00:59:56 joris Exp $ */
+/* $OpenBSD: co.c,v 1.50 2005/12/27 16:05:21 niallo Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -156,7 +156,7 @@ checkout_main(int argc, char **argv)
continue;
}
- if ((file = rcs_open(fpath, RCS_RDWR)) == NULL)
+ if ((file = rcs_open(fpath, RCS_RDWR|RCS_PARSE_FULLY)) == NULL)
continue;
if (flags & PRESERVETIME)