version 1.23, 2005/10/07 21:47:32 |
version 1.24, 2005/12/22 14:31:44 |
|
|
return (0); |
return (0); |
|
|
/* chdir before running the `cvs update' command */ |
/* chdir before running the `cvs update' command */ |
if (cvs_chdir(dpath) == -1) |
cvs_chdir(dpath); |
return (CVS_EX_FILE); |
|
|
|
/* test if dir has CVS/ directory */ |
/* test if dir has CVS/ directory */ |
if (stat(CVS_PATH_CVSDIR, &st) == -1) { |
if (stat(CVS_PATH_CVSDIR, &st) == -1) { |
|
|
cvs_log(LP_ERR, "unable to release `%s'", dpath); |
cvs_log(LP_ERR, "unable to release `%s'", dpath); |
|
|
/* change back to original working dir */ |
/* change back to original working dir */ |
if (cvs_chdir(wdir) == -1) |
cvs_chdir(wdir); |
return (CVS_EX_FILE); |
|
} |
} |
|
|
printf("You have [%d] altered file%s in this repository.\n", |
printf("You have [%d] altered file%s in this repository.\n", |
|
|
"** `%s' aborted by user choice.\n", cvs_command); |
"** `%s' aborted by user choice.\n", cvs_command); |
|
|
/* change back to original working dir */ |
/* change back to original working dir */ |
if (cvs_chdir(wdir) == -1) |
cvs_chdir(wdir); |
return (CVS_EX_FILE); |
|
|
|
return (-1); |
return (-1); |
} |
} |
|
|
/* change back to original working dir */ |
/* change back to original working dir */ |
if (cvs_chdir(wdir) == -1) |
cvs_chdir(wdir); |
return (CVS_EX_FILE); |
|
|
|
if (dflag == 1) { |
if (dflag == 1) { |
if (cvs_rmdir(dpath) != 0) |
if (cvs_rmdir(dpath) != 0) |