summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-07-30 20:55:36 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-07-30 20:55:36 +0000
commit61d10c518e93482249f8b02e25453ef9e49992f4 (patch)
tree33e51e28b3c8da02beb0d0eace99b9da22a77990 /usr.bin/cvs/diff.c
parentb7a4d2a9341327d00b750b490cf05a3321e06eee (diff)
fix diffing by sending the base directory just before sending the 'diff'
command, and remove some debugging messages
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index a68c2d222be..14e7c879329 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.4 2004/07/30 01:49:23 jfb Exp $ */
+/* $OpenBSD: diff.c,v 1.5 2004/07/30 20:55:35 jfb Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -421,8 +421,10 @@ cvs_diff(int argc, char **argv)
cvs_file_examine(files, cvs_diff_file, &darg);
root = files->cf_ddat->cd_root;
- if (root->cr_method != CVS_METHOD_LOCAL)
+ if (root->cr_method != CVS_METHOD_LOCAL) {
+ cvs_senddir(root, files);
cvs_sendreq(root, CVS_REQ_DIFF, NULL);
+ }
return (0);
}
@@ -482,8 +484,6 @@ cvs_diff_file(struct cvs_file *cfp, void *arg)
dap = (struct diff_arg *)arg;
- cvs_log(LP_DEBUG, "%s: diffing %s", __func__, cfp->cf_path);
-
if (cfp->cf_type == DT_DIR) {
root = cfp->cf_ddat->cd_root;
if ((cfp->cf_parent == NULL) ||