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

Diff for /src/usr.bin/cvs/entries.c between version 1.14 and 1.15

version 1.14, 2004/08/13 12:58:44 version 1.15, 2004/08/13 13:24:13
Line 449 
Line 449 
         /* reposition ourself at beginning of file */          /* reposition ourself at beginning of file */
         rewind(ef->cef_file);          rewind(ef->cef_file);
         TAILQ_FOREACH(ent, &(ef->cef_ent), ce_list) {          TAILQ_FOREACH(ent, &(ef->cef_ent), ce_list) {
                 if (ent->ce_type == CVS_ENT_DIR)                  if (ent->ce_type == CVS_ENT_DIR) {
                         putc('D', ef->cef_file);                          putc('D', ef->cef_file);
                           timebuf[0] = '\0';
                           revbuf[0] = '\0';
                   }
                   else {
                           rcsnum_tostr(ent->ce_rev, revbuf, sizeof(revbuf));
                           if (ent->ce_mtime == CVS_DATE_DMSEC)
                                   strlcpy(timebuf, CVS_DATE_DUMMY,
                                       sizeof(timebuf));
                           else {
                                   ctime_r(&(ent->ce_mtime), timebuf);
                                   len = strlen(timebuf);
                                   if ((len > 0) && (timebuf[len - 1] == '\n'))
                                           timebuf[--len] = '\0';
                           }
                   }
   
                 rcsnum_tostr(ent->ce_rev, revbuf, sizeof(revbuf));  
   
                 if (ent->ce_mtime == CVS_DATE_DMSEC)  
                         strlcpy(timebuf, CVS_DATE_DUMMY, sizeof(timebuf));  
                 else  
                         ctime_r(&(ent->ce_mtime), timebuf);  
                 len = strlen(timebuf);  
                 if ((len > 0) && (timebuf[len - 1] == '\n'))  
                         timebuf[--len] = '\0';  
                 fprintf(ef->cef_file, "/%s/%s/%s/%s/%s\n", ent->ce_name,                  fprintf(ef->cef_file, "/%s/%s/%s/%s/%s\n", ent->ce_name,
                     revbuf, timebuf, "", "");                      revbuf, timebuf, "", "");
         }          }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15