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

Diff for /src/usr.bin/rcs/rcsprog.c between version 1.107 and 1.108

version 1.107, 2006/04/18 03:35:57 version 1.108, 2006/04/19 06:53:41
Line 35 
Line 35 
                         "or end of file:\nNOTE: This is NOT the log message!\n"                          "or end of file:\nNOTE: This is NOT the log message!\n"
   
 const char rcs_version[] = "OpenCVS RCS version 3.6";  const char rcs_version[] = "OpenCVS RCS version 3.6";
 int verbose = 1;  
 int pipeout = 0;  int pipeout = 0;
   
 int      flags;  int      flags;
Line 561 
Line 560 
                         orange = xstrdup(rcs_optarg);                          orange = xstrdup(rcs_optarg);
                         break;                          break;
                 case 'q':                  case 'q':
                         verbose = 0;                          rcsflags |= QUIET;
                         break;                          break;
                 case 't':                  case 't':
                         descfile = rcs_optarg;                          descfile = rcs_optarg;
Line 612 
Line 611 
                 if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)                  if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)
                         continue;                          continue;
   
                 if (verbose == 1)                  if (!(rcsflags & QUIET))
                         printf("RCS file: %s\n", fpath);                          printf("RCS file: %s\n", fpath);
   
                 if ((file = rcs_open(fpath, flags, fmode)) == NULL)                  if ((file = rcs_open(fpath, flags, fmode)) == NULL)
Line 730 
Line 729 
                                 fatal("%s: can't lock nonexisting revision %s",                                  fatal("%s: can't lock nonexisting revision %s",
                                     fpath, rev_str);                                      fpath, rev_str);
                         if (rcs_lock_add(file, username, rev) != -1 &&                          if (rcs_lock_add(file, username, rev) != -1 &&
                             verbose == 1)                              !(rcsflags & QUIET))
                                 printf("%s locked\n", rev_str);                                  printf("%s locked\n", rev_str);
                         rcsnum_free(rev);                          rcsnum_free(rev);
                 }                  }
Line 756 
Line 755 
                                 fatal("%s: can't unlock nonexisting revision %s",                                  fatal("%s: can't unlock nonexisting revision %s",
                                     fpath, rev_str);                                      fpath, rev_str);
                         if (rcs_lock_remove(file, username, rev) == -1 &&                          if (rcs_lock_remove(file, username, rev) == -1 &&
                             verbose == 1)                              !(rcsflags & QUIET))
                                 cvs_log(LP_ERR,                                  cvs_log(LP_ERR,
                                     "%s: warning: No locks are set.", fpath);                                      "%s: warning: No locks are set.", fpath);
                         rcsnum_free(rev);                          rcsnum_free(rev);
Line 784 
Line 783 
                 if (rcsflags & PRESERVETIME)                  if (rcsflags & PRESERVETIME)
                         rcs_set_mtime(fpath, rcs_mtime);                          rcs_set_mtime(fpath, rcs_mtime);
   
                 if (verbose == 1)                  if (!(rcsflags & QUIET))
                         printf("done\n");                          printf("done\n");
         }          }
   

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108