[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.17 and 1.18

version 1.17, 2005/10/10 14:49:32 version 1.18, 2005/10/10 15:05:48
Line 56 
Line 56 
 checkin_usage(void)  checkin_usage(void)
 {  {
         fprintf(stderr,          fprintf(stderr,
             "usage: %s [-jlMNquV] [-d date] [-r [rev]] [-m msg] [-k mode] "              "usage: %s [-jMNqV] [-d date] [-k mode] [-l [rev]] [-m msg]\n"
             "file ...\n", __progname);              "          [-r [rev]] [-u [rev]] file ...\n", __progname);
 }  }
   
 /*  /*
Line 90 
Line 90 
                 exit(1);                  exit(1);
         }          }
   
         while ((ch = getopt(argc, argv, "j:lM:N:qud:r::m:k:V")) != -1) {          while ((ch = getopt(argc, argv, "j:l::M:N:qu::d:r::m:k:V")) != -1) {
                 switch (ch) {                  switch (ch) {
                 case 'h':                  case 'h':
                         (usage)();                          (usage)();
Line 106 
Line 106 
                         printf("%s\n", rcs_version);                          printf("%s\n", rcs_version);
                         exit(0);                          exit(0);
                 case 'l':                  case 'l':
                           if (optarg != NULL) {
                                   if ((newrev = rcsnum_parse(optarg)) == NULL) {
                                           cvs_log(LP_ERR, "bad revision number");
                                           exit(1);
                                   }
                           }
                         lkmode = LOCK_LOCK;                          lkmode = LOCK_LOCK;
                         break;                          break;
                 case 'u':                  case 'u':
                           if (optarg != NULL) {
                                   if ((newrev = rcsnum_parse(optarg)) == NULL) {
                                           cvs_log(LP_ERR, "bad revision number");
                                           exit(1);
                                   }
                           }
                         lkmode = LOCK_UNLOCK;                          lkmode = LOCK_UNLOCK;
                         break;                          break;
                 case 'r':                  case 'r':

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18