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

Diff for /src/usr.bin/rcs/ci.c between version 1.86 and 1.87

version 1.86, 2005/12/19 18:24:12 version 1.87, 2005/12/20 09:04:17
Line 114 
Line 114 
                 case 'd':                  case 'd':
                         if (rcs_optarg == NULL)                          if (rcs_optarg == NULL)
                                 pb.date = DATE_MTIME;                                  pb.date = DATE_MTIME;
                         else if ((pb.date = cvs_date_parse(rcs_optarg)) <= 0) {                          else if ((pb.date = cvs_date_parse(rcs_optarg)) <= 0)
                                 cvs_log(LP_ERR, "invalide date");                                  fatal("invalid date");
                                 exit(1);  
                         }  
                         break;                          break;
                 case 'f':                  case 'f':
                         rcs_set_rev(rcs_optarg, &pb.newrev);                          rcs_set_rev(rcs_optarg, &pb.newrev);
Line 146 
Line 144 
                         break;                          break;
                 case 'm':                  case 'm':
                         pb.rcs_msg = rcs_optarg;                          pb.rcs_msg = rcs_optarg;
                         if (pb.rcs_msg == NULL) {                          if (pb.rcs_msg == NULL)
                                 cvs_log(LP_ERR,                                  fatal("missing message for -m option");
                                     "missing message for -m option");  
                                 exit(1);  
                         }  
                         pb.flags &= ~INTERACTIVE;                          pb.flags &= ~INTERACTIVE;
                         break;                          break;
                 case 'N':                  case 'N':
                         pb.symbol = xstrdup(rcs_optarg);                          pb.symbol = xstrdup(rcs_optarg);
                         if (rcs_sym_check(pb.symbol) != 1) {                          if (rcs_sym_check(pb.symbol) != 1)
                                 cvs_log(LP_ERR, "invalid symbol `%s'",                                  fatal("invalid symbol `%s'", pb.symbol);
                                     pb.symbol);  
                                 exit(1);  
                         }  
                         pb.flags |= CI_SYMFORCE;                          pb.flags |= CI_SYMFORCE;
                         break;                          break;
                 case 'n':                  case 'n':
                         pb.symbol = xstrdup(rcs_optarg);                          pb.symbol = xstrdup(rcs_optarg);
                         if (rcs_sym_check(pb.symbol) != 1) {                          if (rcs_sym_check(pb.symbol) != 1)
                                 cvs_log(LP_ERR, "invalid symbol `%s'",                                  fatal("invalid symbol `%s'", pb.symbol);
                                     pb.symbol);  
                                 exit(1);  
                         }  
                         break;                          break;
                 case 'q':                  case 'q':
                         verbose = 0;                          verbose = 0;
Line 179 
Line 168 
                         break;                          break;
                 case 's':                  case 's':
                         pb.state = rcs_optarg;                          pb.state = rcs_optarg;
                         if (rcs_state_check(pb.state) < 0) {                          if (rcs_state_check(pb.state) < 0)
                                 cvs_log(LP_ERR, "invalid state `%s'",                                  fatal("invalid state `%s'", pb.state);
                                     pb.state);  
                                 exit(1);  
                         }  
                         break;                          break;
                 case 'T':                  case 'T':
                         pb.flags |= PRESERVETIME;                          pb.flags |= PRESERVETIME;
Line 262 
Line 248 
   
                 pb.file = rcs_open(pb.fpath, pb.openflags, pb.fmode);                  pb.file = rcs_open(pb.fpath, pb.openflags, pb.fmode);
   
                 if (pb.file == NULL) {                  if (pb.file == NULL)
                         cvs_log(LP_ERR, "failed to open rcsfile '%s'",                          fatal("failed to open rcsfile '%s'", pb.fpath);
                             pb.fpath);  
                         exit(1);  
                 }  
   
                 if (verbose == 1)                  if (verbose == 1)
                         printf("%s  <--  %s\n", pb.fpath, pb.filename);                          printf("%s  <--  %s\n", pb.fpath, pb.filename);
Line 498 
Line 481 
         }          }
   
         /* Current head revision gets the RCS patch as rd_text */          /* Current head revision gets the RCS patch as rd_text */
         if (rcs_deltatext_set(pb->file, pb->frev, pb->deltatext) == -1) {          if (rcs_deltatext_set(pb->file, pb->frev, pb->deltatext) == -1)
                 cvs_log(LP_ERR,                  fatal("failed to set new rd_text for head rev");
                     "failed to set new rd_text for head rev");  
                 exit (1);  
         }  
   
         /*          /*
          * Set the date of the revision to be the last modification           * Set the date of the revision to be the last modification
Line 530 
Line 510 
                 pb->newrev = pb->file->rf_head;                  pb->newrev = pb->file->rf_head;
   
         /* New head revision has to contain entire file; */          /* New head revision has to contain entire file; */
         if (rcs_deltatext_set(pb->file, pb->frev, filec) == -1) {          if (rcs_deltatext_set(pb->file, pb->frev, filec) == -1)
                 cvs_log(LP_ERR, "failed to set new head revision");                  fatal("failed to set new head revision");
                 exit(1);  
         }  
   
         /* Attach a symbolic name to this revision if specified. */          /* Attach a symbolic name to this revision if specified. */
         if (pb->symbol != NULL          if (pb->symbol != NULL

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87