[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.96 and 1.97

version 1.96, 2007/06/28 21:38:09 version 1.97, 2007/07/03 13:22:42
Line 33 
Line 33 
   
 extern int prune_dirs;  extern int prune_dirs;
 extern int build_dirs;  extern int build_dirs;
 extern int reset_stickies;  
 extern char *tag;  
   
 static int flags = CR_REPO | CR_RECURSE_DIRS;  static int flags = CR_REPO | CR_RECURSE_DIRS;
   
Line 78 
Line 76 
                 case 'R':                  case 'R':
                         break;                          break;
                 case 'r':                  case 'r':
                         tag = xstrdup(optarg);                          cvs_specified_tag = optarg;
                         break;                          break;
                 default:                  default:
                         fatal("%s", cvs_cmd_checkout.cmd_synopsis);                          fatal("%s", cvs_cmd_checkout.cmd_synopsis);
Line 137 
Line 135 
         if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {          if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {
                 cvs_client_connect_to_server();                  cvs_client_connect_to_server();
   
                 if (tag != NULL)                  if (cvs_specified_tag != NULL)
                         cvs_client_send_request("Argument -r%s", tag);                          cvs_client_send_request("Argument -r%s",
                               cvs_specified_tag);
                 if (reset_stickies == 1)                  if (reset_stickies == 1)
                         cvs_client_send_request("Argument -A");                          cvs_client_send_request("Argument -A");
   
Line 175 
Line 174 
                             argv[i]);                              argv[i]);
                         continue;                          continue;
                 }                  }
                 cvs_mkpath(argv[i]);  
                   cvs_mkpath(argv[i], cvs_specified_tag);
                 checkout_repository(repo, argv[i]);                  checkout_repository(repo, argv[i]);
         }          }
 }  }
Line 217 
Line 217 
         CVSENTRIES *ent;          CVSENTRIES *ent;
         struct timeval tv[2];          struct timeval tv[2];
         char *tosend;          char *tosend;
         char template[MAXPATHLEN], *p, entry[CVS_ENT_MAXLINELEN];          char template[MAXPATHLEN], entry[CVS_ENT_MAXLINELEN];
         char kbuf[8], stickytag[32], rev[CVS_REV_BUFSZ];          char kbuf[8], stickytag[32], rev[CVS_REV_BUFSZ];
         char timebuf[CVS_TIME_BUFSZ], tbuf[CVS_TIME_BUFSZ];          char timebuf[CVS_TIME_BUFSZ], tbuf[CVS_TIME_BUFSZ];
   
Line 291 
Line 291 
         }          }
   
         if (co_flags & CO_SETSTICKY)          if (co_flags & CO_SETSTICKY)
                 if (tag != NULL)                  if (cvs_specified_tag != NULL)
                         (void)xsnprintf(stickytag, sizeof(stickytag), "T%s",                          (void)xsnprintf(stickytag, sizeof(stickytag), "T%s",
                             tag);                              cvs_specified_tag);
                 else                  else
                         (void)xsnprintf(stickytag, sizeof(stickytag), "T%s",                          (void)xsnprintf(stickytag, sizeof(stickytag), "T%s",
                             rev);                              rev);
Line 321 
Line 321 
                         cvs_ent_close(ent, ENT_SYNC);                          cvs_ent_close(ent, ENT_SYNC);
                 }                  }
         } else {          } else {
                 if ((p = strrchr(cf->file_rpath, ',')) != NULL)  
                         *p = '\0';  
   
                 if (co_flags & CO_MERGE) {                  if (co_flags & CO_MERGE) {
                         cvs_merge_file(cf, 1);                          cvs_merge_file(cf, 1);
                         tosend = cf->file_path;                          tosend = cf->file_path;
Line 359 
Line 356 
                                     cvs_worklist_unlink);                                      cvs_worklist_unlink);
                         }                          }
                 }                  }
   
                 if (p != NULL)  
                         *p = ',';  
         }          }
 }  }

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97