summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-06-14 03:19:16 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-06-14 03:19:16 +0000
commite0521522cf3a43f99da13b4e1a59bd82bb470015 (patch)
tree05bc8014a274d830c1ce4f23347e9fd2fd708b44 /usr.bin/cvs/commit.c
parentdc650b3cd564bb3f7b03f782108ce9e181b89ed4 (diff)
don't always re-open the same CVS/Entries file, instead keep the
last opened CVS/Entries around to operate on and close it whenever we switch directory. gives us a small performance boost, obviously. while doing this, switch the way we write revisions to disk by using fwrite(3) so stuff can get written to disk in chunks instead of writing everything line by line, another win. with help from otto@ ok tobias@
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r--usr.bin/cvs/commit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index ff58ca99d4c..ecfdf49741b 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.140 2008/06/10 19:00:17 joris Exp $ */
+/* $OpenBSD: commit.c,v 1.141 2008/06/14 03:19:15 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -633,7 +633,6 @@ cvs_commit_local(struct cvs_file *cf)
} else {
entlist = cvs_ent_open(cf->file_wd);
cvs_ent_remove(entlist, cf->file_name);
- cvs_ent_close(entlist, ENT_SYNC);
cvs_get_repository_path(cf->file_wd, repo, MAXPATHLEN);