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

Diff for /src/usr.bin/cvs/annotate.c between version 1.8 and 1.9

version 1.8, 2005/04/11 18:02:58 version 1.9, 2005/04/12 14:58:40
Line 85 
Line 85 
                         rev = optarg;                          rev = optarg;
                         break;                          break;
                 default:                  default:
                         return (1);                          return (CVS_EX_USAGE);
                 }                  }
         }          }
   
         if ((date != NULL) && (rev != NULL)) {          if ((date != NULL) && (rev != NULL)) {
                 cvs_log(LP_ERR,                  cvs_log(LP_ERR,
                     "the -D and -d arguments are mutually exclusive");                      "the -D and -d arguments are mutually exclusive");
                 return (1);                  return (CVS_EX_USAGE);
         }          }
   
         *arg = optind;          *arg = optind;
Line 103 
Line 103 
 cvs_annotate_sendflags(struct cvsroot *root)  cvs_annotate_sendflags(struct cvsroot *root)
 {  {
         if (usehead && (cvs_sendarg(root, "-f", 0) < 0))          if (usehead && (cvs_sendarg(root, "-f", 0) < 0))
                 return (-1);                  return (CVS_EX_PROTO);
   
         if (rev != NULL) {          if (rev != NULL) {
                 if ((cvs_sendarg(root, "-r", 0) < 0) ||                  if ((cvs_sendarg(root, "-r", 0) < 0) ||
                     (cvs_sendarg(root, rev, 0) < 0))                      (cvs_sendarg(root, rev, 0) < 0))
                         return (-1);                          return (CVS_EX_PROTO);
         }          }
   
         if (date != NULL) {          if (date != NULL) {
                 if ((cvs_sendarg(root, "-D", 0) < 0) ||                  if ((cvs_sendarg(root, "-D", 0) < 0) ||
                     (cvs_sendarg(root, date, 0) < 0))                      (cvs_sendarg(root, date, 0) < 0))
                         return (-1);                          return (CVS_EX_PROTO);
         }          }
   
         return (0);          return (0);
Line 154 
Line 154 
         if (root->cr_method != CVS_METHOD_LOCAL) {          if (root->cr_method != CVS_METHOD_LOCAL) {
                 if ((entp != NULL) && (cvs_sendentry(root, entp) < 0)) {                  if ((entp != NULL) && (cvs_sendentry(root, entp) < 0)) {
                         cvs_ent_free(entp);                          cvs_ent_free(entp);
                         return (-1);                          return (CVS_EX_PROTO);
                 }                  }
   
                 switch (cf->cf_cvstat) {                  switch (cf->cf_cvstat) {

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9