[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.233 and 1.234

version 1.233, 2008/03/09 03:06:56 version 1.234, 2008/03/09 03:14:52
Line 238 
Line 238 
         cf->file_type = type;          cf->file_type = type;
         cf->file_status = cf->file_flags = 0;          cf->file_status = cf->file_flags = 0;
         cf->user_supplied = user_supplied;          cf->user_supplied = user_supplied;
           cf->in_attic = 0;
         cf->file_ent = NULL;          cf->file_ent = NULL;
   
         if (current_cvsroot->cr_method != CVS_METHOD_LOCAL ||          if (current_cvsroot->cr_method != CVS_METHOD_LOCAL ||
Line 341 
Line 342 
                                 if (cvs_directory_tag == NULL &&                                  if (cvs_directory_tag == NULL &&
                                     cvs_specified_tag != NULL)                                      cvs_specified_tag != NULL)
                                         cvs_directory_tag = cvs_specified_tag;                                          cvs_directory_tag = cvs_specified_tag;
   
                                   if (current_cvsroot->cr_method ==
                                       CVS_METHOD_LOCAL) {
                                           cvs_get_repository_path(cf->file_wd,
                                               repo, MAXPATHLEN);
                                           cvs_repository_lock(repo,
                                               (cmdp->cmd_flags & CVS_LOCK_REPO));
                                   }
                         }                          }
   
                         if (cr->fileproc != NULL)                          if (cr->fileproc != NULL)
                                 cr->fileproc(cf);                                  cr->fileproc(cf);
   
                           if (l->user_supplied && cmdp->cmd_flags & CVS_LOCK_REPO)
                                   cvs_repository_unlock(repo);
                 }                  }
   
                 cvs_file_free(cf);                  cvs_file_free(cf);
Line 556 
Line 568 
         cvs_ent_close(entlist, ENT_NOSYNC);          cvs_ent_close(entlist, ENT_NOSYNC);
   
 walkrepo:  walkrepo:
         if (cr->flags & CR_REPO) {          if (current_cvsroot->cr_method == CVS_METHOD_LOCAL) {
                 cvs_get_repository_path(cf->file_path, repo, MAXPATHLEN);                  cvs_get_repository_path(cf->file_path, repo, MAXPATHLEN);
                 cvs_repository_lock(repo);                  cvs_repository_lock(repo, (cmdp->cmd_flags & CVS_LOCK_REPO));
           }
   
           if (cr->flags & CR_REPO) {
                 xsnprintf(fpath, sizeof(fpath), "%s/%s", cf->file_path,                  xsnprintf(fpath, sizeof(fpath), "%s/%s", cf->file_path,
                     CVS_PATH_STATICENTRIES);                      CVS_PATH_STATICENTRIES);
   
Line 571 
Line 585 
         cvs_file_walklist(&fl, cr);          cvs_file_walklist(&fl, cr);
         cvs_file_freelist(&fl);          cvs_file_freelist(&fl);
   
         if (cr->flags & CR_REPO)          if (current_cvsroot->cr_method == CVS_METHOD_LOCAL &&
               (cmdp->cmd_flags & CVS_LOCK_REPO))
                 cvs_repository_unlock(repo);                  cvs_repository_unlock(repo);
   
         cvs_file_walklist(&dl, cr);          cvs_file_walklist(&dl, cr);

Legend:
Removed from v.1.233  
changed lines
  Added in v.1.234