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

Diff for /src/usr.bin/cvs/checkout.c between version 1.153 and 1.154

version 1.153, 2008/06/14 03:19:15 version 1.154, 2008/06/14 03:58:29
Line 51 
Line 51 
 char *checkout_target_dir = NULL;  char *checkout_target_dir = NULL;
   
 time_t cvs_specified_date = -1;  time_t cvs_specified_date = -1;
   time_t cvs_directory_date = -1;
 int disable_fast_checkout = 0;  int disable_fast_checkout = 0;
   
 struct cvs_cmd cvs_cmd_checkout = {  struct cvs_cmd cvs_cmd_checkout = {
Line 94 
Line 95 
                 case 'D':                  case 'D':
                         dateflag = optarg;                          dateflag = optarg;
                         cvs_specified_date = cvs_date_parse(dateflag);                          cvs_specified_date = cvs_date_parse(dateflag);
                           reset_tag = 0;
                         break;                          break;
                 case 'd':                  case 'd':
                         if (dflag != NULL)                          if (dflag != NULL)
Line 530 
Line 532 
                 strlcpy(timebuf, tbuf, sizeof(timebuf));                  strlcpy(timebuf, tbuf, sizeof(timebuf));
         }          }
   
         if (co_flags & CO_SETSTICKY)          if (reset_tag) {
                   sticky[0] = '\0';
           } else if (co_flags & CO_SETSTICKY)
                 if (tag != NULL)                  if (tag != NULL)
                         (void)xsnprintf(sticky, sizeof(sticky), "T%s", tag);                          (void)xsnprintf(sticky, sizeof(sticky), "T%s", tag);
                 else if (cvs_specified_date != -1) {                  else if (cvs_specified_date != -1) {
                         gmtime_r(&cvs_specified_date, &datetm);                          gmtime_r(&cvs_specified_date, &datetm);
                         (void)strftime(sticky, sizeof(sticky),                          (void)strftime(sticky, sizeof(sticky),
                             "D"CVS_DATE_FMT, &datetm);                              "D"CVS_DATE_FMT, &datetm);
                   } else if (cvs_directory_date != -1) {
                           gmtime_r(&cvs_directory_date, &datetm);
                           (void)strftime(sticky, sizeof(sticky),
                               "D"CVS_DATE_FMT, &datetm);
                 } else                  } else
                         (void)xsnprintf(sticky, sizeof(sticky), "T%s", rev);                          (void)xsnprintf(sticky, sizeof(sticky), "T%s", rev);
         else if (!reset_tag && cf->file_ent != NULL &&          else if (cf->file_ent != NULL && cf->file_ent->ce_tag != NULL)
             cf->file_ent->ce_tag != NULL)  
                 (void)xsnprintf(sticky, sizeof(sticky), "T%s",                  (void)xsnprintf(sticky, sizeof(sticky), "T%s",
                     cf->file_ent->ce_tag);                      cf->file_ent->ce_tag);
         else          else

Legend:
Removed from v.1.153  
changed lines
  Added in v.1.154