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

Diff for /src/usr.bin/cvs/checkout.c between version 1.11 and 1.12

version 1.11, 2004/12/07 17:10:56 version 1.12, 2004/12/14 01:11:51
Line 70 
Line 70 
                 return (EX_USAGE);                  return (EX_USAGE);
         }          }
   
         cvs_files = cvs_file_get(".", 0);          if ((cvs_files = cvs_file_get(".", 0)) == NULL)
         if (cvs_files == NULL) {  
                 return (EX_USAGE);                  return (EX_USAGE);
         }  
   
         root = CVS_DIR_ROOT(cvs_files);          root = CVS_DIR_ROOT(cvs_files);
         if (root == NULL) {          if (root == NULL) {
Line 84 
Line 82 
                 return (EX_USAGE);                  return (EX_USAGE);
         }          }
         if (root->cr_method != CVS_METHOD_LOCAL) {          if (root->cr_method != CVS_METHOD_LOCAL) {
                 cvs_connect(root);                  if (cvs_connect(root) < 0)
                           return (EX_DATAERR);
   
                 /* first send the expand modules command */                  /* first send the expand modules command */
                 for (i = 0; i < argc; i++)                  for (i = 0; i < argc; i++)
Line 97 
Line 96 
   
                 /* XXX not too sure why we have to send this arg */                  /* XXX not too sure why we have to send this arg */
                 if (cvs_sendarg(root, "-N", 0) < 0)                  if (cvs_sendarg(root, "-N", 0) < 0)
                         exit(1);                          return (EX_PROTOCOL);
   
                 for (i = 0; i < argc; i++)                  for (i = 0; i < argc; i++)
                         if (cvs_sendarg(root, argv[i], 0) < 0)                          if (cvs_sendarg(root, argv[i], 0) < 0)
                                 exit(EX_OSERR);                                  return (EX_PROTOCOL);
   
                 if ((cvs_senddir(root, cvs_files) < 0) ||                  if ((cvs_senddir(root, cvs_files) < 0) ||
                     (cvs_sendreq(root, CVS_REQ_CO, NULL) < 0)) {                      (cvs_sendreq(root, CVS_REQ_CO, NULL) < 0)) {
                         cvs_log(LP_ERR, "failed to checkout");                          cvs_log(LP_ERR, "failed to checkout");
                           return (EX_PROTOCOL);
                 }                  }
         }          }
   

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12