[BACK]Return to watch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/watch.c between version 1.11 and 1.12

version 1.11, 2006/01/02 08:11:56 version 1.12, 2006/04/14 02:45:35
Line 107 
Line 107 
                          * 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;
Line 142 
Line 142 
 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) {

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12