diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-01-12 23:32:02 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-01-12 23:32:02 +0000 |
commit | 86f3195293e0fc04a8930e13107efd5e54ca8fcf (patch) | |
tree | 24889af202d55ee5c1824b74c7f20c6ec9d4a0e5 /usr.bin/cvs/commit.c | |
parent | 11e0f6ff64cc91fb9fcf64fb108cddba85fe5c26 (diff) |
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.c | 8 |
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); |