version 1.53, 2006/01/06 16:41:15 |
version 1.54, 2006/01/27 15:26:38 |
|
|
fpath); |
fpath); |
if (cvs_checkout_rev(NULL, NULL, cf, fpath, |
if (cvs_checkout_rev(NULL, NULL, cf, fpath, |
islocal, CHECKOUT_REV_REMOVED) < 0) |
islocal, CHECKOUT_REV_REMOVED) < 0) |
return (CVS_EX_FILE); |
fatal("cvs_update_local: cvs_checkout_rev failed"); |
return (CVS_EX_OK); |
return (CVS_EX_OK); |
} |
} |
} else { |
} else { |
|
|
|
|
/* set keyword expansion */ |
/* set keyword expansion */ |
/* XXX look at cf->cf_opts as well for this */ |
/* XXX look at cf->cf_opts as well for this */ |
if (rcs_kwexp_set(rf, kflag) < 0) { |
if (rcs_kwexp_set(rf, kflag) < 0) |
rcs_close(rf); |
fatal("cvs_update_local: rcs_kwexp_set failed"); |
return (CVS_EX_DATA); |
|
} |
|
|
|
/* fill in the correct revision */ |
/* fill in the correct revision */ |
if (rev != NULL) { |
if (rev != NULL) { |
if ((frev = rcsnum_parse(rev)) == NULL) { |
if ((frev = rcsnum_parse(rev)) == NULL) |
rcs_close(rf); |
fatal("cvs_update_local: rcsnum_parse failed"); |
return (CVS_EX_DATA); |
} else |
} |
|
} else { |
|
frev = rf->rf_head; |
frev = rf->rf_head; |
} |
|
|
|
/* |
/* |
* Compare the headrevision with the revision we currently have. |
* Compare the headrevision with the revision we currently have. |