version 1.70, 2005/11/27 16:15:26 |
version 1.71, 2005/11/27 17:47:18 |
|
|
* Test for existence of ,v file. If we are expected to |
* Test for existence of ,v file. If we are expected to |
* create one, set NEWFILE flag. |
* create one, set NEWFILE flag. |
*/ |
*/ |
if ((pb.openflags & RCS_CREATE) |
if (rcs_statfile(pb.filename, pb.fpath, sizeof(pb.fpath)) < 0) { |
&& (rcs_statfile(pb.filename, pb.fpath, |
if (pb.openflags & RCS_CREATE) |
sizeof(pb.fpath)) < 0)) { |
pb.flags |= NEWFILE; |
pb.flags |= NEWFILE; |
else { |
} else if (!(pb.openflags & RCS_CREATE) |
cvs_log(LP_ERR, "No existing RCS file"); |
&& (rcs_statfile(pb.filename, pb.fpath, |
status = 1; |
sizeof(pb.fpath)) < 0)) { |
continue; |
cvs_log(LP_ERR, "No existing RCS file"); |
} |
status = 1; |
|
continue; |
|
} else { |
} else { |
if (pb.flags & CI_INIT) { |
if (pb.flags & CI_INIT) { |
cvs_log(LP_ERR, "%s already exists", pb.fpath); |
cvs_log(LP_ERR, "%s already exists", pb.fpath); |