diff options
author | 2007-01-14 23:10:56 +0000 | |
---|---|---|
committer | 2007-01-14 23:10:56 +0000 | |
commit | ff7b57e3f6dc2a8d4cd730a981a371de2cd30297 (patch) | |
tree | 5caed1e8b5686380f17e16c7e276937fefd9c77d /usr.bin/cvs/commit.c | |
parent | reset sticky tags with -A; OK joris@. (diff) | |
download | wireguard-openbsd-ff7b57e3f6dc2a8d4cd730a981a371de2cd30297.tar.xz wireguard-openbsd-ff7b57e3f6dc2a8d4cd730a981a371de2cd30297.zip |
move things around in rcs_rev_getbuf() and rcs_rev_write_fd()
so that we do keyword expansion on-the-fly if required instead
of obtaining the revision in memory first, running over the revision
lines while expanding keywords and only then writing them to the fd
or memory buffer.
this drasticly decreases cpu usage by opencvs on very large trees (like src).
OK niallo@
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 23b599f463a..fc96be6afd4 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.97 2007/01/13 18:28:27 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.98 2007/01/14 23:10:56 joris 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_rev_getbuf(cf->file_rcs, cf->file_rcs->rf_head); + b = rcs_rev_getbuf(cf->file_rcs, cf->file_rcs->rf_head, 0); if (b == NULL) fatal("cvs_commit_local: failed to get HEAD"); } else { |