[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.144 and 1.145

version 1.144, 2008/07/08 12:54:13 version 1.145, 2008/08/29 09:54:22
Line 135 
Line 135 
         if (TAILQ_EMPTY(&files_affected))          if (TAILQ_EMPTY(&files_affected))
                 return (0);                  return (0);
   
         if (logmsg == NULL && cvs_server_active == 0) {  
                 logmsg = cvs_logmsg_create(NULL, &files_added, &files_removed,  
                     &files_modified);  
   
                 if (logmsg == NULL)  
                         fatal("This shouldnt happen, honestly!");  
         }  
   
         if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {          if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {
                   if (logmsg == NULL) {
                           logmsg = cvs_logmsg_create(NULL, &files_added,
                               &files_removed, &files_modified);
                           if (logmsg == NULL)
                                   fatal("This shouldnt happen, honestly!");
                   }
                 cvs_client_connect_to_server();                  cvs_client_connect_to_server();
                 cr.fileproc = cvs_client_sendfile;                  cr.fileproc = cvs_client_sendfile;
   
Line 161 
Line 159 
                 cvs_client_send_request("ci");                  cvs_client_send_request("ci");
                 cvs_client_get_responses();                  cvs_client_get_responses();
         } else {          } else {
                 if (cvs_server_active && logmsg == NULL)  
                         fatal("no log message specified");  
   
                 cvs_get_repository_name(".", repo, MAXPATHLEN);                  cvs_get_repository_name(".", repo, MAXPATHLEN);
   
                 line_list = cvs_trigger_getlines(CVS_PATH_COMMITINFO, repo);                  line_list = cvs_trigger_getlines(CVS_PATH_COMMITINFO, repo);
Line 187 
Line 182 
                         cvs_trigger_freeinfo(&files_info);                          cvs_trigger_freeinfo(&files_info);
                 }                  }
   
                   if (cvs_server_active) {
                           if (logmsg == NULL)
                                   fatal("no log message specified");
                   } else if (logmsg == NULL) {
                           logmsg = cvs_logmsg_create(NULL, &files_added,
                               &files_removed, &files_modified);
                           if (logmsg == NULL)
                                   fatal("This shouldnt happen, honestly!");
                   }
   
                 if (cvs_logmsg_verify(logmsg))                  if (cvs_logmsg_verify(logmsg))
                         goto end;                          goto end;
   
Line 217 
Line 222 
   
 end:  end:
         cvs_trigger_freeinfo(&files_info);          cvs_trigger_freeinfo(&files_info);
         xfree(logmsg);          if (logmsg != NULL)
                   xfree(logmsg);
         return (0);          return (0);
 }  }
   

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.145