version 1.138, 2008/06/10 17:34:36 |
version 1.139, 2008/06/11 02:19:13 |
|
|
#include <fcntl.h> |
#include <fcntl.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" |
|
|
int fd1, fd2; |
int fd1, fd2; |
struct stat st; |
struct stat st; |
struct timeval tv[2], tv2[2]; |
struct timeval tv[2], tv2[2]; |
struct tm *datetm; |
struct tm datetm; |
char rbuf[CVS_REV_BUFSZ], tbuf[CVS_TIME_BUFSZ], *p1, *p2; |
char rbuf[CVS_REV_BUFSZ], tbuf[CVS_TIME_BUFSZ], *p1, *p2; |
|
|
b1 = NULL; |
b1 = NULL; |
|
|
cvs_log(LP_ERR, "tag %s not in file %s", rev1, |
cvs_log(LP_ERR, "tag %s not in file %s", rev1, |
cf->file_path); |
cf->file_path); |
else { |
else { |
datetm = gmtime(&cvs_specified_date); |
gmtime_r(&cvs_specified_date, &datetm); |
strftime(tbuf, sizeof(tbuf), |
strftime(tbuf, sizeof(tbuf), |
"%Y.%m.%d.%H.%M.%S", datetm); |
"%Y.%m.%d.%H.%M.%S", &datetm); |
cvs_log(LP_ERR, "no revision for date %s in " |
cvs_log(LP_ERR, "no revision for date %s in " |
"file %s", tbuf, cf->file_path); |
"file %s", tbuf, cf->file_path); |
} |
} |
|
|
cvs_log(LP_ERR, "tag %s not in file %s", rev2, |
cvs_log(LP_ERR, "tag %s not in file %s", rev2, |
cf->file_path); |
cf->file_path); |
} else { |
} else { |
datetm = gmtime(&cvs_specified_date); |
gmtime_r(&cvs_specified_date, &datetm); |
strftime(tbuf, sizeof(tbuf), |
strftime(tbuf, sizeof(tbuf), |
"%Y.%m.%d.%H.%M.%S", datetm); |
"%Y.%m.%d.%H.%M.%S", &datetm); |
cvs_log(LP_ERR, "no revision for date %s in " |
cvs_log(LP_ERR, "no revision for date %s in " |
"file %s", tbuf, cf->file_path); |
"file %s", tbuf, cf->file_path); |
} |
} |