version 1.87, 2008/02/04 15:08:44 |
version 1.88, 2008/02/04 18:23:58 |
|
|
} |
} |
|
|
void |
void |
cvs_write_tagfile(const char *dir, char *tag, char *date, int nb) |
cvs_write_tagfile(const char *dir, char *tag, char *date) |
{ |
{ |
FILE *fp; |
FILE *fp; |
|
RCSNUM *rev; |
char tagpath[MAXPATHLEN]; |
char tagpath[MAXPATHLEN]; |
char sticky[CVS_REV_BUFSZ]; |
char sticky[CVS_REV_BUFSZ]; |
int i; |
int i; |
|
|
|
cvs_log(LP_TRACE, "cvs_write_tagfile(%s, %s, %s)", dir, |
|
tag != NULL ? tag : "", date != NULL ? date : ""); |
|
|
if (cvs_noexec == 1) |
if (cvs_noexec == 1) |
return; |
return; |
|
|
|
|
} |
} |
|
|
if (tag != NULL) { |
if (tag != NULL) { |
if (nb != 0) { |
if ((rev = rcsnum_parse(tag)) != NULL) { |
(void)xsnprintf(sticky, sizeof(sticky), |
(void)xsnprintf(sticky, sizeof(sticky), |
"N%s", tag); |
"N%s", tag); |
|
rcsnum_free(rev); |
} else { |
} else { |
(void)xsnprintf(sticky, sizeof(sticky), |
(void)xsnprintf(sticky, sizeof(sticky), |
"T%s", tag); |
"T%s", tag); |