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

Diff for /src/usr.bin/cvs/commit.c between version 1.67 and 1.68

version 1.67, 2006/05/31 23:27:38 version 1.68, 2006/06/01 20:00:52
Line 165 
Line 165 
         if (cf->file_status == FILE_MODIFIED ||          if (cf->file_status == FILE_MODIFIED ||
             cf->file_status == FILE_REMOVED || (cf->file_status == FILE_ADDED              cf->file_status == FILE_REMOVED || (cf->file_status == FILE_ADDED
             && cf->file_rcs != NULL && cf->file_rcs->rf_dead == 1))              && cf->file_rcs != NULL && cf->file_rcs->rf_dead == 1))
                 rcsnum_tostr(cf->file_rcs->rf_head, rbuf, sizeof(rbuf));                  rcsnum_tostr(rcs_head_get(cf->file_rcs), rbuf, sizeof(rbuf));
         else          else
                 strlcpy(rbuf, "Non-existent", sizeof(rbuf));                  strlcpy(rbuf, "Non-existent", sizeof(rbuf));
   
Line 258 
Line 258 
                 if (rcs_state_set(cf->file_rcs,                  if (rcs_state_set(cf->file_rcs,
                     cf->file_rcs->rf_head, RCS_STATE_DEAD) == -1)                      cf->file_rcs->rf_head, RCS_STATE_DEAD) == -1)
                         fatal("cvs_commit_local: failed to set state");                          fatal("cvs_commit_local: failed to set state");
           }
   
           if (cf->file_rcs->rf_branch != NULL) {
                   rcsnum_free(cf->file_rcs->rf_branch);
                   cf->file_rcs->rf_branch = NULL;
         }          }
   
         rcs_write(cf->file_rcs);          rcs_write(cf->file_rcs);

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68