[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.141 and 1.142

version 1.141, 2006/04/13 00:58:25 version 1.142, 2006/04/13 03:18:06
Line 281 
Line 281 
                             NULL)                              NULL)
                                 fatal("invalid revision: %s", rev_str);                                  fatal("invalid revision: %s", rev_str);
   
                   /* XXX - support for commiting to a file without revisions */
                   if (pb.file->rf_ndelta == 0) {
                           pb.flags |= NEWFILE;
                           pb.file->rf_flags |= RCS_CREATE;
                   }
   
                 if (pb.flags & NEWFILE)                  if (pb.flags & NEWFILE)
                         status = checkin_init(&pb);                          status = checkin_init(&pb);
                 else                  else
Line 661 
Line 667 
                 checkin_keywordscan(filec, &pb->newrev, &pb->date, &pb->state,                  checkin_keywordscan(filec, &pb->newrev, &pb->date, &pb->state,
                     &pb->author);                      &pb->author);
   
           if (pb->file->rf_ndelta == 0)
                   goto skipdesc;
   
         /* Get description from user */          /* Get description from user */
         if (pb->description == NULL)          if (pb->description == NULL)
                 rcs_desc = (const char *)checkin_getdesc();                  rcs_desc = (const char *)checkin_getdesc();
Line 681 
Line 690 
                 }                  }
         }          }
         rcs_desc_set(pb->file, rcs_desc);          rcs_desc_set(pb->file, rcs_desc);
   
   skipdesc:
   
         /*          /*
          * If the user had specified a zero-ending revision number e.g. 4           * If the user had specified a zero-ending revision number e.g. 4

Legend:
Removed from v.1.141  
changed lines
  Added in v.1.142