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

Diff for /src/usr.bin/cvs/cmd.c between version 1.16 and 1.17

version 1.16, 2005/04/25 21:58:32 version 1.17, 2005/05/20 05:13:44
Line 66 
Line 66 
                 argv += i;                  argv += i;
         }          }
   
         if ((c->cmd_flags & CVS_CMD_ALLOWSPEC) && argc != 0)  
                 cvs_files = cvs_file_getspec(argv, argc, c->file_flags);  
         else  
                 cvs_files = cvs_file_get(".", c->file_flags);  
   
         if (cvs_files == NULL)  
                 return (CVS_EX_DATA);  
   
         if ((c->cmd_helper != NULL) && ((ret = c->cmd_helper()) != 0))          if ((c->cmd_helper != NULL) && ((ret = c->cmd_helper()) != 0))
                 return (ret);                  return (ret);
   
         root = CVS_DIR_ROOT(cvs_files);          if ((root = cvsroot_get(".")) == NULL)
         if (root == NULL && (root = cvsroot_get(".")) == NULL)  
                 return (CVS_EX_BADROOT);                  return (CVS_EX_BADROOT);
   
         if (root->cr_method != CVS_METHOD_LOCAL) {          if (root->cr_method != CVS_METHOD_LOCAL) {
Line 109 
Line 100 
         if (cmd->cmd_op == CVS_OP_VERSION)          if (cmd->cmd_op == CVS_OP_VERSION)
                 return (0);                  return (0);
   
         if (c->cmd_examine != NULL)          if ((c->cmd_flags & CVS_CMD_ALLOWSPEC) && argc != 0) {
                 cvs_file_examine(cvs_files, c->cmd_examine, NULL);                  cvs_files = cvs_file_getspec(argv, argc, c->file_flags,
                       c->cmd_examine, NULL);
           } else {
                   cvs_files = cvs_file_get(".", c->file_flags,
                       c->cmd_examine, NULL);
           }
   
           if (cvs_files == NULL)
                   return (CVS_EX_DATA);
   
         if (root->cr_method != CVS_METHOD_LOCAL) {          if (root->cr_method != CVS_METHOD_LOCAL) {
                 if (c->cmd_flags & CVS_CMD_SENDDIR) {                  if (c->cmd_flags & CVS_CMD_SENDDIR) {

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17