version 1.11, 2006/01/02 08:11:56 |
version 1.12, 2006/04/14 02:45:35 |
|
|
* Only `watch add | remove' support the -a option. |
* Only `watch add | remove' support the -a option. |
* Check which command has been issued. |
* Check which command has been issued. |
*/ |
*/ |
if ((watchreq != CVS_REQ_WATCH_ADD) && |
if (watchreq != CVS_REQ_WATCH_ADD && |
(watchreq != CVS_REQ_WATCH_REMOVE)) |
watchreq != CVS_REQ_WATCH_REMOVE) |
return (CVS_EX_USAGE); |
return (CVS_EX_USAGE); |
if ((strcmp(optarg, "commit") != 0) && |
if (strcmp(optarg, "commit") != 0 && |
(strcmp(optarg, "edit") != 0) && |
strcmp(optarg, "edit") != 0 && |
(strcmp(optarg, "unedit") != 0) && |
strcmp(optarg, "unedit") != 0 && |
(strcmp(optarg, "all") != 0) && |
strcmp(optarg, "all") != 0 && |
(strcmp(optarg, "none") != 0)) |
strcmp(optarg, "none") != 0) |
return (CVS_EX_USAGE); |
return (CVS_EX_USAGE); |
aoptstr = xstrdup(optarg); |
aoptstr = xstrdup(optarg); |
break; |
break; |
|
|
cvs_watch_pre_exec(struct cvsroot *root) |
cvs_watch_pre_exec(struct cvsroot *root) |
{ |
{ |
if (root->cr_method != CVS_METHOD_LOCAL) { |
if (root->cr_method != CVS_METHOD_LOCAL) { |
if ((watchreq != CVS_REQ_WATCH_ADD) && |
if (watchreq != CVS_REQ_WATCH_ADD && |
(watchreq != CVS_REQ_WATCH_REMOVE)) |
watchreq != CVS_REQ_WATCH_REMOVE) |
return (CVS_EX_OK); |
return (CVS_EX_OK); |
|
|
if (aoptstr == NULL || strcmp(aoptstr, "all") == 0) { |
if (aoptstr == NULL || strcmp(aoptstr, "all") == 0) { |