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/diff.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/diff.c')
-rw-r--r-- | usr.bin/cvs/diff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index 3e3ba0b7f6f..5ca0bacf17c 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.111 2007/01/11 10:37:18 xsa Exp $ */ +/* $OpenBSD: diff.c,v 1.112 2007/01/12 23:32:01 niallo Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -209,7 +209,7 @@ cvs_diff_local(struct cvs_file *cf) diff_rev1 = r1; rcsnum_tostr(r1, rbuf , sizeof(rbuf)); cvs_printf("retrieving revision %s\n", rbuf); - if ((b1 = rcs_getrev(cf->file_rcs, r1)) == NULL) + if ((b1 = rcs_rev_getbuf(cf->file_rcs, r1)) == NULL) fatal("failed to retrieve revision %s", rbuf); b1 = rcs_kwexp_buf(b1, cf->file_rcs, r1); @@ -223,7 +223,7 @@ cvs_diff_local(struct cvs_file *cf) cf->file_status != FILE_REMOVED) { rcsnum_tostr(diff_rev2, rbuf, sizeof(rbuf)); cvs_printf("retrieving revision %s\n", rbuf); - if ((b2 = rcs_getrev(cf->file_rcs, diff_rev2)) == NULL) + if ((b2 = rcs_rev_getbuf(cf->file_rcs, diff_rev2)) == NULL) fatal("failed to retrieve revision %s", rbuf); b2 = rcs_kwexp_buf(b2, cf->file_rcs, diff_rev2); |