version 1.67, 2008/02/09 13:03:29 |
version 1.68, 2008/03/01 20:03:56 |
|
|
static int |
static int |
tag_add(struct cvs_file *cf) |
tag_add(struct cvs_file *cf) |
{ |
{ |
|
int ret; |
char revbuf[CVS_REV_BUFSZ], trevbuf[CVS_REV_BUFSZ]; |
char revbuf[CVS_REV_BUFSZ], trevbuf[CVS_REV_BUFSZ]; |
RCSNUM *srev, *trev; |
RCSNUM *srev, *trev; |
struct rcs_sym *sym; |
struct rcs_sym *sym; |
|
|
rcsnum_cpy(srev, trev, 0); |
rcsnum_cpy(srev, trev, 0); |
} |
} |
|
|
if (rcs_sym_add(cf->file_rcs, tag_name, trev) == -1) { |
if ((ret = rcs_sym_add(cf->file_rcs, tag_name, trev)) != 0) { |
if (rcs_errno != RCS_ERR_DUPENT) { |
if (ret != 1) { |
cvs_log(LP_NOTICE, |
cvs_log(LP_NOTICE, |
"failed to set tag %s to revision %s in %s", |
"failed to set tag %s to revision %s in %s", |
tag_name, revbuf, cf->file_rcs->rf_path); |
tag_name, revbuf, cf->file_rcs->rf_path); |