version 1.73, 2005/12/21 09:09:02 |
version 1.74, 2005/12/30 02:03:28 |
|
|
{ |
{ |
if (root->cr_method != CVS_METHOD_LOCAL) { |
if (root->cr_method != CVS_METHOD_LOCAL) { |
/* send the flags */ |
/* send the flags */ |
if ((Nflag == 1) && (cvs_sendarg(root, "-N", 0) < 0)) |
if (Nflag == 1) |
return (CVS_EX_PROTO); |
cvs_sendarg(root, "-N", 0); |
if ((pflag ==1) && (cvs_sendarg(root, "-p", 0) < 0)) |
if (pflag == 1) |
return (CVS_EX_PROTO); |
cvs_sendarg(root, "-p", 0); |
|
|
if (diff_format == D_CONTEXT) { |
if (diff_format == D_CONTEXT) |
if (cvs_sendarg(root, "-c", 0) < 0) |
cvs_sendarg(root, "-c", 0); |
return (CVS_EX_PROTO); |
else if (diff_format == D_UNIFIED) |
} else if (diff_format == D_UNIFIED) { |
cvs_sendarg(root, "-u", 0); |
if (cvs_sendarg(root, "-u", 0) < 0) |
|
return (CVS_EX_PROTO); |
|
} |
|
|
|
if (dap->rev1 != NULL) { |
if (dap->rev1 != NULL) { |
if ((cvs_sendarg(root, "-r", 0) < 0) || |
cvs_sendarg(root, "-r", 0); |
(cvs_sendarg(root, dap->rev1, 0) < 0)) |
cvs_sendarg(root, dap->rev1, 0); |
return (CVS_EX_PROTO); |
|
} else if (dap->date1 != NULL) { |
} else if (dap->date1 != NULL) { |
if ((cvs_sendarg(root, "-D", 0) < 0) || |
cvs_sendarg(root, "-D", 0); |
(cvs_sendarg(root, dap->date1, 0) < 0)) |
cvs_sendarg(root, dap->date1, 0); |
return (CVS_EX_PROTO); |
|
} |
} |
if (dap->rev2 != NULL) { |
if (dap->rev2 != NULL) { |
if ((cvs_sendarg(root, "-r", 0) < 0) || |
cvs_sendarg(root, "-r", 0); |
(cvs_sendarg(root, dap->rev2, 0) < 0)) |
cvs_sendarg(root, dap->rev2, 0); |
return (CVS_EX_PROTO); |
|
} else if (dap->date2 != NULL) { |
} else if (dap->date2 != NULL) { |
if ((cvs_sendarg(root, "-D", 0) < 0) || |
cvs_sendarg(root, "-D", 0); |
(cvs_sendarg(root, dap->date2, 0) < 0)) |
cvs_sendarg(root, dap->date2, 0); |
return (CVS_EX_PROTO); |
|
} |
} |
} |
} |
|
|
|
|
return (0); |
return (0); |
} |
} |
|
|
if (cvs_sendentry(root, cfp) < 0) |
cvs_sendentry(root, cfp); |
return (CVS_EX_PROTO); |
|
|
|
if (cfp->cf_cvstat == CVS_FST_UPTODATE) { |
if (cfp->cf_cvstat == CVS_FST_UPTODATE) { |
cvs_sendreq(root, CVS_REQ_UNCHANGED, cfp->cf_name); |
cvs_sendreq(root, CVS_REQ_UNCHANGED, cfp->cf_name); |
|
|
} |
} |
|
|
/* at this point, the file is modified */ |
/* at this point, the file is modified */ |
if ((cvs_sendreq(root, CVS_REQ_MODIFIED, cfp->cf_name) < 0) || |
cvs_sendreq(root, CVS_REQ_MODIFIED, cfp->cf_name); |
(cvs_sendfile(root, diff_file) < 0)) |
cvs_sendfile(root, diff_file); |
return (CVS_EX_PROTO); |
|
|
|
return (0); |
return (0); |
} |
} |