diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-30 01:49:27 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-30 01:49:27 +0000 |
commit | b59c4319a2b0bee7cbb7f9ef3342f372940000e1 (patch) | |
tree | a92383f8032facbf9c49611d38ee8dd3cfeaa963 /usr.bin/cvs/history.c | |
parent | f1a256bf9c1770f12d8fbfedbab0ecc0c472d43d (diff) |
Move to the new API for the client-server protocol. All functions now
take a cvs root structure as parameter. This will allow for much easier
management of CVS trees that make use of multiple roots.
Diffstat (limited to 'usr.bin/cvs/history.c')
-rw-r--r-- | usr.bin/cvs/history.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/cvs/history.c b/usr.bin/cvs/history.c index 24cf4379342..7fbb808b8f2 100644 --- a/usr.bin/cvs/history.c +++ b/usr.bin/cvs/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.2 2004/07/29 18:34:23 jfb Exp $ */ +/* $OpenBSD: history.c,v 1.3 2004/07/30 01:49:23 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -38,6 +38,7 @@ #include "cvs.h" #include "rcs.h" #include "log.h" +#include "proto.h" #define CVS_HISTORY_MAXMOD 16 @@ -162,25 +163,24 @@ cvs_history(int argc, char **argv) } else { if (flags & CVS_HF_C) - cvs_client_sendarg("-c", 0); + cvs_sendarg(root, "-c", 0); if (flags & CVS_HF_O) - cvs_client_sendarg("-o", 0); + cvs_sendarg(root, "-o", 0); if (tag != NULL) { - cvs_client_sendarg("-t", 0); - cvs_client_sendarg(tag, 0); + cvs_sendarg(root, "-t", 0); + cvs_sendarg(root, tag, 0); } if (user != NULL) { - cvs_client_sendarg("-u", 0); - cvs_client_sendarg(user, 0); + cvs_sendarg(root, "-u", 0); + cvs_sendarg(root, user, 0); } + cvs_sendarg(root, "-z", 0); + cvs_sendarg(root, zone, 0); - cvs_client_sendarg("-z", 0); - cvs_client_sendarg(zone, 0); - - cvs_client_sendreq(CVS_REQ_HISTORY, NULL, 1); + cvs_sendreq(root, CVS_REQ_HISTORY, NULL); } return (0); |