[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.78 and 1.79

version 1.78, 2006/04/15 16:28:07 version 1.79, 2006/04/19 06:53:41
Line 92 
Line 92 
                         break;                          break;
                 case 'q':                  case 'q':
                         rcs_setrevstr(&rev_str, rcs_optarg);                          rcs_setrevstr(&rev_str, rcs_optarg);
                         verbose = 0;                          flags |= QUIET;
                         break;                          break;
                 case 'r':                  case 'r':
                         rcs_setrevstr(&rev_str, rcs_optarg);                          rcs_setrevstr(&rev_str, rcs_optarg);
Line 158 
Line 158 
                 if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)                  if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)
                         continue;                          continue;
   
                 if (verbose == 1)                  if (!(flags & QUIET))
                         printf("%s  -->  %s\n", fpath,                          printf("%s  -->  %s\n", fpath,
                             (pipeout == 1) ? "standard output" : argv[i]);                              (pipeout == 1) ? "standard output" : argv[i]);
   
Line 197 
Line 197 
                         continue;                          continue;
                 }                  }
   
                 if (verbose == 1)                  if (!(flags & QUIET))
                         printf("done\n");                          printf("done\n");
   
                 rcs_close(file);                  rcs_close(file);
Line 343 
Line 343 
                 }                  }
         }          }
   
         if (verbose == 1 && !(flags & NEWFILE) &&          if (!(flags & QUIET) && !(flags & NEWFILE) &&
             !(flags & CO_REVERT) && file->rf_ndelta != 0)              !(flags & CO_REVERT) && file->rf_ndelta != 0)
                 printf("revision %s", buf);                  printf("revision %s", buf);
   
         if (verbose == 1 && (flags & CO_REVERT))          if (!(flags & QUIET) && (flags & CO_REVERT))
                 printf("done");                  printf("done");
   
         if (file->rf_ndelta != 0) {          if (file->rf_ndelta != 0) {
Line 388 
Line 388 
                 mode |= S_IWUSR;                  mode |= S_IWUSR;
   
                 if (file->rf_ndelta != 0) {                  if (file->rf_ndelta != 0) {
                         if (verbose == 1 && !(flags & NEWFILE) &&                          if (!(flags & QUIET) && !(flags & NEWFILE) &&
                             !(flags & CO_REVERT))                              !(flags & CO_REVERT))
                                 printf(" (locked)");                                  printf(" (locked)");
                 }                  }
Line 405 
Line 405 
                     (S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH);                      (S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH);
   
                 if (file->rf_ndelta != 0) {                  if (file->rf_ndelta != 0) {
                         if (verbose == 1 && !(flags & NEWFILE) &&                          if (!(flags & QUIET) && !(flags & NEWFILE) &&
                             !(flags & CO_REVERT))                              !(flags & CO_REVERT))
                                 printf(" (unlocked)");                                  printf(" (unlocked)");
                 }                  }
Line 416 
Line 416 
                 cvs_log(LP_WARN, "no revisions, so nothing can be %s",                  cvs_log(LP_WARN, "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) {
                 if (verbose == 1 && !(flags & NEWFILE))                  if (!(flags & QUIET) && !(flags & NEWFILE))
                         printf("\n");                          printf("\n");
         }          }
   
         if (flags & CO_LOCK) {          if (flags & CO_LOCK) {
                 if (rcs_errno != RCS_ERR_DUPENT)                  if (rcs_errno != RCS_ERR_DUPENT)
                         lcount++;                          lcount++;
                 if (verbose == 1 && lcount > 1 && !(flags & CO_REVERT))                  if (!(flags & QUIET) && lcount > 1 && !(flags & CO_REVERT))
                         cvs_log(LP_WARN, "%s: warning: You now have %d locks.",                          cvs_log(LP_WARN, "%s: warning: You now have %d locks.",
                             file->rf_path, lcount);                              file->rf_path, lcount);
         }          }
Line 449 
Line 449 
                 printf("remove it? [ny](n): ");                  printf("remove it? [ny](n): ");
                 /* default is n */                  /* default is n */
                 if (cvs_yesno() == -1) {                  if (cvs_yesno() == -1) {
                         if (verbose == 1 && isatty(STDIN_FILENO))                          if (!(flags & QUIET) && isatty(STDIN_FILENO))
                                 cvs_log(LP_ERR,                                  cvs_log(LP_ERR,
                                     "writable %s exists; checkout aborted",                                      "writable %s exists; checkout aborted",
                                     dst);                                      dst);

Legend:
Removed from v.1.78  
changed lines
  Added in v.1.79