summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-13 07:04:17 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-13 07:04:17 +0000
commit849f06decd5b92be1797e655eb138e29b2a27321 (patch)
treec79e2c14ee7ed5469c3d5f83cf222eec7d5a3557 /usr.bin/cvs
parent06f8adac9a684107cb08fc0d5f5b70210bbffc38 (diff)
prettier
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/update.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index 4637c0144bf..131f3de59c6 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.13 2004/12/21 18:32:10 jfb Exp $ */
+/* $OpenBSD: update.c,v 1.14 2005/01/13 07:04:16 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -136,7 +136,7 @@ int
cvs_update_file(CVSFILE *cf, void *arg)
{
int ret;
- char *repo, fpath[MAXPATHLEN], rcspath[MAXPATHLEN];
+ char *fname, *repo, fpath[MAXPATHLEN], rcspath[MAXPATHLEN];
RCSFILE *rf;
struct cvsroot *root;
struct cvs_ent *entp;
@@ -145,6 +145,7 @@ cvs_update_file(CVSFILE *cf, void *arg)
rf = NULL;
root = CVS_DIR_ROOT(cf);
repo = CVS_DIR_REPO(cf);
+ fname = CVS_FILE_NAME(cf);
if (cf->cf_type == DT_DIR) {
if (root->cr_method != CVS_METHOD_LOCAL) {
@@ -169,17 +170,15 @@ cvs_update_file(CVSFILE *cf, void *arg)
switch (cf->cf_cvstat) {
case CVS_FST_UNKNOWN:
- ret = cvs_sendreq(root, CVS_REQ_QUESTIONABLE,
- CVS_FILE_NAME(cf));
+ ret = cvs_sendreq(root, CVS_REQ_QUESTIONABLE, fname);
break;
case CVS_FST_UPTODATE:
- ret = cvs_sendreq(root, CVS_REQ_UNCHANGED,
- CVS_FILE_NAME(cf));
+ ret = cvs_sendreq(root, CVS_REQ_UNCHANGED, fname);
break;
case CVS_FST_ADDED:
case CVS_FST_MODIFIED:
- ret = cvs_sendreq(root, CVS_REQ_MODIFIED,
- CVS_FILE_NAME(cf));
+ cvs_log(LP_TRACE, "Sending file `%s' to server", fname);
+ ret = cvs_sendreq(root, CVS_REQ_MODIFIED, fname);
if (ret == 0)
ret = cvs_sendfile(root, fpath);
break;