version 1.61, 2005/11/17 00:16:35 |
version 1.62, 2005/11/17 00:22:30 |
|
|
static char * checkin_getlogmsg(RCSNUM *, RCSNUM *); |
static char * checkin_getlogmsg(RCSNUM *, RCSNUM *); |
static void checkin_init(struct checkin_params *); |
static void checkin_init(struct checkin_params *); |
static void checkin_revert(struct checkin_params *pb); |
static void checkin_revert(struct checkin_params *pb); |
static int checkin_setrevdate(struct checkin_params *pb); |
static int checkin_mtimedate(struct checkin_params *pb); |
|
|
void |
void |
checkin_usage(void) |
checkin_usage(void) |
|
|
* time of the working file if -d has no argument. |
* time of the working file if -d has no argument. |
*/ |
*/ |
if (pb.date == DATE_MTIME |
if (pb.date == DATE_MTIME |
&& (checkin_setrevdate(&pb) < 0)) |
&& (checkin_mtimedate(&pb) < 0)) |
continue; |
continue; |
|
|
|
|
|
|
} |
} |
|
|
/* |
/* |
* checkin_setrevdate() |
* checkin_mtimedate() |
* |
* |
* Set the date of the revision to be the last modification |
* Set the date of the revision to be the last modification |
* time of the working file if -d has no argument. |
* time of the working file. |
* |
* |
* On success, return 0. On error return -1. |
* On success, return 0. On error return -1. |
*/ |
*/ |
static int |
static int |
checkin_setrevdate(struct checkin_params *pb) |
checkin_mtimedate(struct checkin_params *pb) |
{ |
{ |
struct stat sb; |
struct stat sb; |
if (stat(pb->filename, &sb) != 0) { |
if (stat(pb->filename, &sb) != 0) { |