version 1.76, 2006/06/28 17:59:06 |
version 1.77, 2006/06/28 18:52:05 |
|
|
BUF *b; |
BUF *b; |
int isnew; |
int isnew; |
int l, openflags, rcsflags; |
int l, openflags, rcsflags; |
char *d, *f, rbuf[24]; |
char *d, *f, rbuf[24], nbuf[24]; |
CVSENTRIES *entlist; |
CVSENTRIES *entlist; |
char *attic, *repo, *rcsfile; |
char *attic, *repo, *rcsfile; |
|
|
|
|
commit_desc_set(cf); |
commit_desc_set(cf); |
} |
} |
|
|
cvs_printf("Checking in %s:\n", cf->file_path); |
if (verbosity > 1) { |
cvs_printf("%s <- %s\n", cf->file_rpath, cf->file_path); |
cvs_printf("Checking in %s:\n", cf->file_path); |
cvs_printf("old revision: %s; ", rbuf); |
cvs_printf("%s <- %s\n", cf->file_rpath, cf->file_path); |
|
cvs_printf("old revision: %s; ", rbuf); |
|
} |
|
|
if (isnew == 0) |
if (isnew == 0) |
d = commit_diff_file(cf); |
d = commit_diff_file(cf); |
|
|
rcs_write(cf->file_rcs); |
rcs_write(cf->file_rcs); |
|
|
if (cf->file_status == FILE_REMOVED) { |
if (cf->file_status == FILE_REMOVED) { |
strlcpy(rbuf, "Removed", sizeof(rbuf)); |
strlcpy(nbuf, "Removed", sizeof(nbuf)); |
} else if (cf->file_status == FILE_ADDED) { |
} else if (cf->file_status == FILE_ADDED) { |
if (cf->file_rcs->rf_dead == 1) |
if (cf->file_rcs->rf_dead == 1) |
strlcpy(rbuf, "Initial Revision", sizeof(rbuf)); |
strlcpy(nbuf, "Initial Revision", sizeof(nbuf)); |
else |
else |
rcsnum_tostr(cf->file_rcs->rf_head, |
rcsnum_tostr(cf->file_rcs->rf_head, |
rbuf, sizeof(rbuf)); |
nbuf, sizeof(nbuf)); |
} else if (cf->file_status == FILE_MODIFIED) { |
} else if (cf->file_status == FILE_MODIFIED) { |
rcsnum_tostr(cf->file_rcs->rf_head, rbuf, sizeof(rbuf)); |
rcsnum_tostr(cf->file_rcs->rf_head, nbuf, sizeof(nbuf)); |
} |
} |
|
|
cvs_printf("new revision: %s\n", rbuf); |
if (verbosity > 1) |
|
cvs_printf("new revision: %s\n", nbuf); |
|
|
(void)unlink(cf->file_path); |
(void)unlink(cf->file_path); |
(void)close(cf->fd); |
(void)close(cf->fd); |
|
|
xfree(attic); |
xfree(attic); |
} |
} |
|
|
cvs_printf("done\n"); |
if (verbosity > 1) |
|
cvs_printf("done\n"); |
|
else { |
|
cvs_log(LP_NOTICE, "checking in '%s'; revision %s -> %s", |
|
cf->file_path, rbuf, nbuf); |
|
} |
} |
} |
|
|
static char * |
static char * |