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

Diff for /src/usr.bin/cvs/file.c between version 1.208 and 1.209

version 1.208, 2008/01/10 10:12:09 version 1.209, 2008/01/10 11:21:34
Line 378 
Line 378 
   
         l = stat(fpath, &st);          l = stat(fpath, &st);
         if (cvs_cmdop != CVS_OP_IMPORT && cvs_cmdop != CVS_OP_RLOG &&          if (cvs_cmdop != CVS_OP_IMPORT && cvs_cmdop != CVS_OP_RLOG &&
               cvs_cmdop != CVS_OP_RTAG &&
             (l == -1 || (l == 0 && !S_ISDIR(st.st_mode)))) {              (l == -1 || (l == 0 && !S_ISDIR(st.st_mode)))) {
                 return;                  return;
         }          }
Line 427 
Line 428 
                                 continue;                                  continue;
                         }                          }
   
                         if (cvs_file_chkign(dp->d_name)) {                          if (cvs_file_chkign(dp->d_name) &&
                               cvs_cmdop != CVS_OP_RLOG &&
                               cvs_cmdop != CVS_OP_RTAG) {
                                 cp += dp->d_reclen;                                  cp += dp->d_reclen;
                                 continue;                                  continue;
                         }                          }
Line 591 
Line 594 
         (void)xsnprintf(rcsfile, MAXPATHLEN, "%s/%s",          (void)xsnprintf(rcsfile, MAXPATHLEN, "%s/%s",
             repo, cf->file_name);              repo, cf->file_name);
   
         if (cf->file_type == CVS_FILE) {          if (cvs_cmdop != CVS_OP_RLOG && cvs_cmdop != CVS_OP_RTAG &&
               cf->file_type == CVS_FILE) {
                 len = strlcat(rcsfile, RCS_FILE_EXT, MAXPATHLEN);                  len = strlcat(rcsfile, RCS_FILE_EXT, MAXPATHLEN);
                 if (len >= MAXPATHLEN)                  if (len >= MAXPATHLEN)
                         fatal("cvs_file_classify: truncation");                          fatal("cvs_file_classify: truncation");
Line 619 
Line 623 
         if (cf->file_type == CVS_DIR) {          if (cf->file_type == CVS_DIR) {
                 if (cf->fd == -1 && stat(rcsfile, &st) != -1)                  if (cf->fd == -1 && stat(rcsfile, &st) != -1)
                         cf->file_status = DIR_CREATE;                          cf->file_status = DIR_CREATE;
                 else if (cf->file_ent != NULL || cvs_cmdop == CVS_OP_RLOG)                  else if (cf->file_ent != NULL || cvs_cmdop == CVS_OP_RLOG ||
                       cvs_cmdop == CVS_OP_RTAG)
                         cf->file_status = FILE_UPTODATE;                          cf->file_status = FILE_UPTODATE;
                 else                  else
                         cf->file_status = FILE_UNKNOWN;                          cf->file_status = FILE_UNKNOWN;
Line 635 
Line 640 
         case CVS_OP_IMPORT:          case CVS_OP_IMPORT:
         case CVS_OP_LOG:          case CVS_OP_LOG:
         case CVS_OP_RLOG:          case CVS_OP_RLOG:
           case CVS_OP_RTAG:
                 rflags |= RCS_PARSE_FULLY;                  rflags |= RCS_PARSE_FULLY;
                 break;                  break;
         default:          default:

Legend:
Removed from v.1.208  
changed lines
  Added in v.1.209