version 1.113, 2008/01/31 19:38:59 |
version 1.114, 2008/01/31 19:49:05 |
|
|
struct timeval tv[2]; |
struct timeval tv[2]; |
char *tosend; |
char *tosend; |
char template[MAXPATHLEN], entry[CVS_ENT_MAXLINELEN]; |
char template[MAXPATHLEN], entry[CVS_ENT_MAXLINELEN]; |
char kbuf[8], stickytag[32], rev[CVS_REV_BUFSZ]; |
char kbuf[8], sticky[32], rev[CVS_REV_BUFSZ]; |
char timebuf[CVS_TIME_BUFSZ], tbuf[CVS_TIME_BUFSZ]; |
char timebuf[CVS_TIME_BUFSZ], tbuf[CVS_TIME_BUFSZ]; |
|
|
exists = 0; |
exists = 0; |
|
|
|
|
if (co_flags & CO_SETSTICKY) |
if (co_flags & CO_SETSTICKY) |
if (tag != NULL) |
if (tag != NULL) |
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", |
(void)xsnprintf(sticky, sizeof(sticky), "T%s", tag); |
tag); |
|
else |
else |
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", |
(void)xsnprintf(sticky, sizeof(sticky), "T%s", rev); |
rev); |
|
else if (!reset_stickies && cf->file_ent != NULL && |
else if (!reset_stickies && cf->file_ent != NULL && |
cf->file_ent->ce_tag != NULL) |
cf->file_ent->ce_tag != NULL) |
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", |
(void)xsnprintf(sticky, sizeof(sticky), "T%s", |
cf->file_ent->ce_tag); |
cf->file_ent->ce_tag); |
else |
else |
stickytag[0] = '\0'; |
sticky[0] = '\0'; |
|
|
kbuf[0] = '\0'; |
kbuf[0] = '\0'; |
if (cf->file_ent != NULL) { |
if (cf->file_ent != NULL) { |
|
|
} |
} |
|
|
(void)xsnprintf(entry, CVS_ENT_MAXLINELEN, "/%s/%s/%s/%s/%s", |
(void)xsnprintf(entry, CVS_ENT_MAXLINELEN, "/%s/%s/%s/%s/%s", |
cf->file_name, rev, timebuf, kbuf, stickytag); |
cf->file_name, rev, timebuf, kbuf, sticky); |
|
|
if (cvs_server_active == 0) { |
if (cvs_server_active == 0) { |
if (!(co_flags & CO_REMOVE) && cvs_cmdop != CVS_OP_EXPORT) { |
if (!(co_flags & CO_REMOVE) && cvs_cmdop != CVS_OP_EXPORT) { |