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

Diff for /src/usr.bin/cvs/client.c between version 1.102 and 1.103

version 1.102, 2008/02/09 20:04:00 version 1.103, 2008/02/10 12:34:37
Line 455 
Line 455 
 cvs_client_sendfile(struct cvs_file *cf)  cvs_client_sendfile(struct cvs_file *cf)
 {  {
         size_t len;          size_t len;
           struct tm *datetm;
         char rev[CVS_REV_BUFSZ], timebuf[CVS_TIME_BUFSZ], sticky[CVS_REV_BUFSZ];          char rev[CVS_REV_BUFSZ], timebuf[CVS_TIME_BUFSZ], sticky[CVS_REV_BUFSZ];
   
         if (cf->file_type != CVS_FILE)          if (cf->file_type != CVS_FILE)
Line 500 
Line 501 
                 if (cf->file_ent->ce_tag != NULL) {                  if (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 if (cf->file_ent->ce_date != -1) {
                           datetm = gmtime(&(cf->file_ent->ce_date));
                           strftime(sticky, sizeof(sticky),
                               "D%Y.%m.%d.%H.%M.%S", datetm);
                 }                  }
   
                 cvs_client_send_request("Entry /%s/%s%s/%s/%s/%s",                  cvs_client_send_request("Entry /%s/%s%s/%s/%s/%s",
Line 607 
Line 612 
         CVSENTRIES *entlist;          CVSENTRIES *entlist;
         struct cvs_ent *ent, *newent;          struct cvs_ent *ent, *newent;
         size_t len;          size_t len;
           struct tm *datetm;
         char *dir, *e, *entry, rev[CVS_REV_BUFSZ];          char *dir, *e, *entry, rev[CVS_REV_BUFSZ];
         char sticky[CVS_ENT_MAXLINELEN], timebuf[CVS_TIME_BUFSZ];          char sticky[CVS_ENT_MAXLINELEN], timebuf[CVS_TIME_BUFSZ];
   
Line 641 
Line 647 
                 ctime_r(&ent->ce_mtime, timebuf);                  ctime_r(&ent->ce_mtime, timebuf);
                 timebuf[strcspn(timebuf, "\n")] = '\0';                  timebuf[strcspn(timebuf, "\n")] = '\0';
   
                 if (newent->ce_tag != NULL)                  if (newent->ce_tag != NULL) {
                         (void)xsnprintf(sticky, sizeof(sticky), "T%s",                          (void)xsnprintf(sticky, sizeof(sticky), "T%s",
                             newent->ce_tag);                              newent->ce_tag);
                   } else if (newent->ce_date != -1) {
                           datetm = gmtime(&(newent->ce_date));
                           strftime(sticky, sizeof(sticky),
                               "D%Y.%m.%d.%H.%M.%S", datetm);
                   }
   
                 cvs_ent_free(ent);                  cvs_ent_free(ent);
         }          }
Line 671 
Line 682 
         CVSENTRIES *ent;          CVSENTRIES *ent;
         struct cvs_ent *e;          struct cvs_ent *e;
         const char *errstr;          const char *errstr;
           struct tm *datetm;
         struct timeval tv[2];          struct timeval tv[2];
         char repo[MAXPATHLEN], *entry;          char repo[MAXPATHLEN], *entry;
         char timebuf[CVS_TIME_BUFSZ], revbuf[CVS_REV_BUFSZ];          char timebuf[CVS_TIME_BUFSZ], revbuf[CVS_REV_BUFSZ];
Line 715 
Line 727 
         xfree(en);          xfree(en);
   
         sticky[0] = '\0';          sticky[0] = '\0';
         if (e->ce_tag != NULL)          if (e->ce_tag != NULL) {
                 (void)xsnprintf(sticky, sizeof(sticky), "T%s", e->ce_tag);                  (void)xsnprintf(sticky, sizeof(sticky), "T%s", e->ce_tag);
           } else if (e->ce_date != -1) {
                   datetm = gmtime(&(e->ce_date));
                   strftime(sticky, sizeof(sticky), "D%Y.%m.%d.%H.%M.%S", datetm);
           }
   
         rcsnum_tostr(e->ce_rev, revbuf, sizeof(revbuf));          rcsnum_tostr(e->ce_rev, revbuf, sizeof(revbuf));
   

Legend:
Removed from v.1.102  
changed lines
  Added in v.1.103