version 1.9, 2005/12/30 02:03:28 |
version 1.10, 2005/12/31 13:27:51 |
|
|
* 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) { |