version 1.81, 2007/09/22 15:57:24 |
version 1.82, 2007/09/22 16:01:22 |
|
|
{ |
{ |
FILE *fp; |
FILE *fp; |
char tagpath[MAXPATHLEN]; |
char tagpath[MAXPATHLEN]; |
|
char sticky[CVS_REV_BUFSZ]; |
int i; |
int i; |
|
|
if (cvs_noexec == 1) |
if (cvs_noexec == 1) |
|
|
} |
} |
|
|
if (tag != NULL) { |
if (tag != NULL) { |
if (nb != 0) |
if (nb != 0) { |
(void)fprintf(fp, "N%s\n", tag); |
(void)xsnprintf(sticky, sizeof(sticky), |
else |
"N%s", tag); |
(void)fprintf(fp, "T%s\n", tag); |
} else { |
} else |
(void)xsnprintf(sticky, sizeof(sticky), |
(void)fprintf(fp, "D%s\n", date); |
"T%s", tag); |
|
} |
|
} else { |
|
(void)xsnprintf(sticky, sizeof(sticky), "D%s", date); |
|
} |
|
|
|
if (cvs_server_active == 1) |
|
cvs_server_set_sticky(dir, sticky); |
|
|
|
(void)fprintf(fp, "%s\n", sticky); |
(void)fclose(fp); |
(void)fclose(fp); |
} else { |
} else { |
(void)cvs_unlink(tagpath); |
(void)cvs_unlink(tagpath); |