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

Diff for /src/usr.bin/rcs/co.c between version 1.89 and 1.90

version 1.89, 2006/05/09 12:33:42 version 1.90, 2006/05/11 09:43:19
Line 156 
Line 156 
                         continue;                          continue;
   
                 if (!(flags & QUIET))                  if (!(flags & QUIET))
                         printf("%s  -->  %s\n", fpath,                          (void)fprintf(stderr, "%s  -->  %s\n", fpath,
                             (flags & PIPEOUT) ? "standard output" : argv[i]);                              (flags & PIPEOUT) ? "standard output" : argv[i]);
   
                 if ((flags & CO_LOCK) && (kflag & RCS_KWEXP_VAL)) {                  if ((flags & CO_LOCK) && (kflag & RCS_KWEXP_VAL)) {
Line 197 
Line 197 
                 }                  }
   
                 if (!(flags & QUIET))                  if (!(flags & QUIET))
                         printf("done\n");                          (void)fprintf(stderr, "done\n");
   
                 rcsnum_free(rev);                  rcsnum_free(rev);
   
Line 257 
Line 257 
         if (date != NULL)          if (date != NULL)
                 givendate = rcs_date_parse(date);                  givendate = rcs_date_parse(date);
   
         if (file->rf_ndelta == 0)          if (file->rf_ndelta == 0 && !(flags & QUIET))
                 printf("no revisions present; generating empty revision 0.0\n");                  (void)fprintf(stderr,
                       "no revisions present; generating empty revision 0.0\n");
   
         /* XXX rcsnum_cmp()          /* XXX rcsnum_cmp()
          * Check out the latest revision if <frev> is greater than HEAD           * Check out the latest revision if <frev> is greater than HEAD
Line 415 
Line 416 
                 }                  }
         }          }
   
         if (file->rf_ndelta == 0 &&          if (file->rf_ndelta == 0 && !(flags & QUIET) &&
             ((flags & CO_LOCK) || (flags & CO_UNLOCK))) {              ((flags & CO_LOCK) || (flags & CO_UNLOCK))) {
                 warnx("no revisions, so nothing can be %s",                  (void)fprintf(stderr, "no revisions, so nothing can be %s",
                     (flags & CO_LOCK) ? "locked" : "unlocked");                      (flags & CO_LOCK) ? "locked" : "unlocked");
         } else if (file->rf_ndelta != 0) {          } else if (file->rf_ndelta != 0) {
                 /* XXX - Not a good way to detect if a newline is needed. */                  /* XXX - Not a good way to detect if a newline is needed. */
                 if (!(flags & QUIET) && !(flags & NEWFILE) &&                  if (!(flags & QUIET) && !(flags & NEWFILE) &&
                     !(flags & CO_REVERT))                      !(flags & CO_REVERT))
                         printf("\n");                          (void)fprintf(stderr, "\n");
         }          }
   
         if (flags & CO_LOCK) {          if (flags & CO_LOCK) {

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90