version 1.84, 2007/01/12 23:32:01 |
version 1.85, 2007/01/13 15:45:59 |
|
|
void |
void |
cvs_update_local(struct cvs_file *cf) |
cvs_update_local(struct cvs_file *cf) |
{ |
{ |
BUF *bp; |
|
int ret, flags; |
int ret, flags; |
CVSENTRIES *entlist; |
CVSENTRIES *entlist; |
char rbuf[16]; |
char rbuf[16]; |
|
|
return; |
return; |
} |
} |
|
|
/* |
|
* the bp buffer will be released inside rcs_kwexp_buf, |
|
* which is called from cvs_checkout_file(). |
|
*/ |
|
flags = 0; |
flags = 0; |
bp = NULL; |
|
cvs_file_classify(cf, tag, 1); |
cvs_file_classify(cf, tag, 1); |
|
|
if (cf->file_status == FILE_UPTODATE && cf->file_ent != NULL && |
if (cf->file_status == FILE_UPTODATE && cf->file_ent != NULL && |
|
|
cvs_printf("%s\nChecking out %s\n" |
cvs_printf("%s\nChecking out %s\n" |
"RCS:\t%s\nVERS:\t%s\n***************\n", |
"RCS:\t%s\nVERS:\t%s\n***************\n", |
RCS_DIFF_DIV, cf->file_path, cf->file_rpath, rbuf); |
RCS_DIFF_DIV, cf->file_path, cf->file_rpath, rbuf); |
cvs_checkout_file(cf, cf->file_rcsrev, NULL, CO_DUMP); |
cvs_checkout_file(cf, cf->file_rcsrev, CO_DUMP); |
return; |
return; |
} |
} |
|
|
|
|
if (tag != NULL) |
if (tag != NULL) |
flags = CO_SETSTICKY; |
flags = CO_SETSTICKY; |
|
|
cvs_checkout_file(cf, cf->file_rcsrev, NULL, flags); |
cvs_checkout_file(cf, cf->file_rcsrev, flags); |
cvs_printf("U %s\n", cf->file_path); |
cvs_printf("U %s\n", cf->file_path); |
break; |
break; |
case FILE_MERGE: |
case FILE_MERGE: |
|
#if 0 |
cvs_diff3(cf->file_rcs, cf->file_path, cf->fd, |
cvs_diff3(cf->file_rcs, cf->file_path, cf->fd, |
cf->file_ent->ce_rev, cf->file_rcsrev, 1); |
cf->file_ent->ce_rev, cf->file_rcsrev, 1); |
if (bp == NULL) |
|
fatal("cvs_update_local: failed to merge"); |
|
|
|
cvs_checkout_file(cf, cf->file_rcsrev, bp, CO_MERGE); |
cvs_checkout_file(cf, cf->file_rcsrev, CO_MERGE); |
|
|
if (diff3_conflicts != 0) { |
if (diff3_conflicts != 0) { |
cvs_printf("C %s\n", cf->file_path); |
cvs_printf("C %s\n", cf->file_path); |
|
|
update_clear_conflict(cf); |
update_clear_conflict(cf); |
cvs_printf("M %s\n", cf->file_path); |
cvs_printf("M %s\n", cf->file_path); |
} |
} |
|
#endif |
break; |
break; |
case FILE_UNLINK: |
case FILE_UNLINK: |
(void)unlink(cf->file_path); |
(void)unlink(cf->file_path); |