version 1.141, 2006/04/13 00:58:25 |
version 1.142, 2006/04/13 03:18:06 |
|
|
NULL) |
NULL) |
fatal("invalid revision: %s", rev_str); |
fatal("invalid revision: %s", rev_str); |
|
|
|
/* XXX - support for commiting to a file without revisions */ |
|
if (pb.file->rf_ndelta == 0) { |
|
pb.flags |= NEWFILE; |
|
pb.file->rf_flags |= RCS_CREATE; |
|
} |
|
|
if (pb.flags & NEWFILE) |
if (pb.flags & NEWFILE) |
status = checkin_init(&pb); |
status = checkin_init(&pb); |
else |
else |
|
|
checkin_keywordscan(filec, &pb->newrev, &pb->date, &pb->state, |
checkin_keywordscan(filec, &pb->newrev, &pb->date, &pb->state, |
&pb->author); |
&pb->author); |
|
|
|
if (pb->file->rf_ndelta == 0) |
|
goto skipdesc; |
|
|
/* Get description from user */ |
/* Get description from user */ |
if (pb->description == NULL) |
if (pb->description == NULL) |
rcs_desc = (const char *)checkin_getdesc(); |
rcs_desc = (const char *)checkin_getdesc(); |
|
|
} |
} |
} |
} |
rcs_desc_set(pb->file, rcs_desc); |
rcs_desc_set(pb->file, rcs_desc); |
|
|
|
skipdesc: |
|
|
/* |
/* |
* If the user had specified a zero-ending revision number e.g. 4 |
* If the user had specified a zero-ending revision number e.g. 4 |