version 1.148, 2008/06/10 20:30:17 |
version 1.149, 2008/06/11 02:19:13 |
|
|
#include <libgen.h> |
#include <libgen.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
#include <time.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
#include "cvs.h" |
#include "cvs.h" |
|
|
time_t rcstime; |
time_t rcstime; |
CVSENTRIES *ent; |
CVSENTRIES *ent; |
struct timeval tv[2]; |
struct timeval tv[2]; |
struct tm *datetm; |
struct tm datetm; |
char *tosend; |
char *tosend; |
char template[MAXPATHLEN], *entry; |
char template[MAXPATHLEN], *entry; |
char kbuf[8], sticky[CVS_REV_BUFSZ], rev[CVS_REV_BUFSZ]; |
char kbuf[8], sticky[CVS_REV_BUFSZ], rev[CVS_REV_BUFSZ]; |
|
|
time(&rcstime); |
time(&rcstime); |
} |
} |
|
|
asctime_r(gmtime(&rcstime), tbuf); |
gmtime_r(&rcstime, &datetm); |
|
asctime_r(&datetm, tbuf); |
tbuf[strcspn(tbuf, "\n")] = '\0'; |
tbuf[strcspn(tbuf, "\n")] = '\0'; |
|
|
if (co_flags & CO_MERGE) { |
if (co_flags & CO_MERGE) { |
|
|
if (tag != NULL) |
if (tag != NULL) |
(void)xsnprintf(sticky, sizeof(sticky), "T%s", tag); |
(void)xsnprintf(sticky, sizeof(sticky), "T%s", tag); |
else if (cvs_specified_date != -1) { |
else if (cvs_specified_date != -1) { |
datetm = gmtime(&cvs_specified_date); |
gmtime_r(&cvs_specified_date, &datetm); |
(void)strftime(sticky, sizeof(sticky), |
(void)strftime(sticky, sizeof(sticky), |
"D"CVS_DATE_FMT, datetm); |
"D"CVS_DATE_FMT, &datetm); |
} else |
} else |
(void)xsnprintf(sticky, sizeof(sticky), "T%s", rev); |
(void)xsnprintf(sticky, sizeof(sticky), "T%s", rev); |
else if (!reset_tag && cf->file_ent != NULL && |
else if (!reset_tag && cf->file_ent != NULL && |