summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
authorniallo <niallo@openbsd.org>2007-01-12 23:32:01 +0000
committerniallo <niallo@openbsd.org>2007-01-12 23:32:01 +0000
commit0dbb72f1b23a83ad5d0727796cbdc2ed429b89e8 (patch)
treec26328e77bd4496669fd780c97dbcd8dc9d7eafc /usr.bin/cvs/commit.c
parentMini-PCI Express -> PCI Express Mini Card as per PCI-SIG name. (diff)
downloadwireguard-openbsd-0dbb72f1b23a83ad5d0727796cbdc2ed429b89e8.tar.xz
wireguard-openbsd-0dbb72f1b23a83ad5d0727796cbdc2ed429b89e8.zip
major re-work of the RCS api. this results in 100x performance improvements in some places and much
reduced memory usage. note that only checkout has been fully converted to use the new high-performance functions. other codepaths (e.g. update) still use the old method which is provided for backwards compatibility. we can convert the remaining slow bits over to the new api piece-by-piece. "commit this, now" joris@ brad@ tested, too.
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r--usr.bin/cvs/commit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index 28cec83e6b3..9281b878826 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.93 2007/01/12 19:28:12 joris Exp $ */
+/* $OpenBSD: commit.c,v 1.94 2007/01/12 23:32:01 niallo Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -291,7 +291,7 @@ cvs_commit_local(struct cvs_file *cf)
d = commit_diff_file(cf);
if (cf->file_status == FILE_REMOVED) {
- b = rcs_getrev(cf->file_rcs, cf->file_rcs->rf_head);
+ b = rcs_rev_getbuf(cf->file_rcs, cf->file_rcs->rf_head);
if (b == NULL)
fatal("cvs_commit_local: failed to get HEAD");
} else {
@@ -401,13 +401,13 @@ commit_diff_file(struct cvs_file *cf)
fatal("commit_diff_file: failed to load '%s'",
cf->file_path);
} else {
- b1 = rcs_getrev(cf->file_rcs, cf->file_rcs->rf_head);
+ b1 = rcs_rev_getbuf(cf->file_rcs, cf->file_rcs->rf_head);
if (b1 == NULL)
fatal("commit_diff_file: failed to load HEAD");
b1 = rcs_kwexp_buf(b1, cf->file_rcs, cf->file_rcs->rf_head);
}
- if ((b2 = rcs_getrev(cf->file_rcs, cf->file_rcs->rf_head)) == NULL)
+ if ((b2 = rcs_rev_getbuf(cf->file_rcs, cf->file_rcs->rf_head)) == NULL)
fatal("commit_diff_file: failed to load HEAD for '%s'",
cf->file_path);