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

Diff for /src/usr.bin/cvs/history.c between version 1.1 and 1.2

version 1.1, 2004/07/13 22:02:40 version 1.2, 2004/07/29 18:34:23
Line 58 
Line 58 
   
 extern char *__progname;  extern char *__progname;
   
 extern struct cvsroot *cvs_root;  
   
   
 /*  /*
  * cvs_history()   * cvs_history()
  *   *
  * Handle the `cvs history' command.   * Handle the `cvs history' command.
  */   */
   
   
 int  int
 cvs_history(int argc, char **argv)  cvs_history(int argc, char **argv)
 {  {
Line 75 
Line 72 
         u_int nbmod, rep;          u_int nbmod, rep;
         char *user, *zone, *tag, *cp;          char *user, *zone, *tag, *cp;
         char *modules[CVS_HISTORY_MAXMOD], histpath[MAXPATHLEN];          char *modules[CVS_HISTORY_MAXMOD], histpath[MAXPATHLEN];
           struct cvsroot *root;
         struct cvs_hent *hent;          struct cvs_hent *hent;
         CVSHIST *hp;          CVSHIST *hp;
   
Line 148 
Line 146 
         else if (rep == 0)          else if (rep == 0)
                 flags |= CVS_HF_O;    /* use -o as default */                  flags |= CVS_HF_O;    /* use -o as default */
   
         if (cvs_root->cr_method == CVS_METHOD_LOCAL) {          root = cvsroot_get(".");
                 snprintf(histpath, sizeof(histpath), "%s/%s", cvs_root->cr_dir,          if (root->cr_method == CVS_METHOD_LOCAL) {
                   snprintf(histpath, sizeof(histpath), "%s/%s", root->cr_dir,
                     CVS_PATH_HISTORY);                      CVS_PATH_HISTORY);
                 hp = cvs_hist_open(histpath);                  hp = cvs_hist_open(histpath);
                 if (hp == NULL) {                  if (hp == NULL) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2