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

Diff for /src/usr.bin/cvs/getlog.c between version 1.32 and 1.33

version 1.32, 2005/07/01 14:29:13 version 1.33, 2005/07/01 14:55:30
Line 46 
Line 46 
 #define CVS_GETLOG_REVEND \  #define CVS_GETLOG_REVEND \
  "============================================================================="   "============================================================================="
   
 static int  cvs_getlog_remote  (CVSFILE *, void *);  static int cvs_getlog_init     (struct cvs_cmd *, int, char **, int *);
 static int  cvs_getlog_local   (CVSFILE *, void *);  static int cvs_getlog_remote   (CVSFILE *, void *);
 static int cvs_getlog_options(struct cvs_cmd *, int, char **, int *);  static int cvs_getlog_local    (CVSFILE *, void *);
 static int cvs_getlog_sendflags(struct cvsroot *);  static int cvs_getlog_pre_exec (struct cvsroot *);
   
 struct cvs_cmd cvs_cmd_log = {  struct cvs_cmd cvs_cmd_log = {
         CVS_OP_LOG, CVS_REQ_LOG, "log",          CVS_OP_LOG, CVS_REQ_LOG, "log",
Line 59 
Line 59 
         "bd:hlNRr:s:tw:",          "bd:hlNRr:s:tw:",
         NULL,          NULL,
         CF_RECURSE,          CF_RECURSE,
         cvs_getlog_options,          cvs_getlog_init,
         NULL,          cvs_getlog_pre_exec,
         cvs_getlog_remote,          cvs_getlog_remote,
         cvs_getlog_local,          cvs_getlog_local,
         NULL,          NULL,
Line 77 
Line 77 
         "d:hlRr:",          "d:hlRr:",
         NULL,          NULL,
         CF_RECURSE,          CF_RECURSE,
         cvs_getlog_options,          cvs_getlog_init,
         cvs_getlog_sendflags,          cvs_getlog_pre_exec,
         cvs_getlog_remote,          cvs_getlog_remote,
         cvs_getlog_local,          cvs_getlog_local,
         NULL,          NULL,
Line 92 
Line 92 
 static int log_notags = 0;  static int log_notags = 0;
   
 static int  static int
 cvs_getlog_options(struct cvs_cmd *cmd, int argc, char **argv, int *arg)  cvs_getlog_init(struct cvs_cmd *cmd, int argc, char **argv, int *arg)
 {  {
         int ch;          int ch;
   
Line 133 
Line 133 
 }  }
   
 static int  static int
 cvs_getlog_sendflags(struct cvsroot *root)  cvs_getlog_pre_exec(struct cvsroot *root)
 {  {
         if (log_honly && (cvs_sendarg(root, "-h", 0) < 0))          if (root->cr_method != CVS_METHOD_LOCAL) {
                 return (CVS_EX_PROTO);                  if (log_honly && (cvs_sendarg(root, "-h", 0) < 0))
         if (log_notags && (cvs_sendarg(root, "-N", 0) < 0))                          return (CVS_EX_PROTO);
                 return (CVS_EX_PROTO);                  if (log_notags && (cvs_sendarg(root, "-N", 0) < 0))
         if (log_rfonly && (cvs_sendarg(root, "-R", 0) < 0))                          return (CVS_EX_PROTO);
                 return (CVS_EX_PROTO);                  if (log_rfonly && (cvs_sendarg(root, "-R", 0) < 0))
         if (log_lhonly && (cvs_sendarg(root, "-t", 0) < 0))                          return (CVS_EX_PROTO);
                 return (CVS_EX_PROTO);                  if (log_lhonly && (cvs_sendarg(root, "-t", 0) < 0))
                           return (CVS_EX_PROTO);
           }
   
         return (0);          return (0);
 }  }
Line 269 
Line 271 
         cvs_printf("keyword substitution: %s\n",          cvs_printf("keyword substitution: %s\n",
             rf->rf_expand == NULL ? "kv" : rf->rf_expand);              rf->rf_expand == NULL ? "kv" : rf->rf_expand);
   
         if (log_honly)          cvs_printf("total revisions: %u;", rf->rf_ndelta);
                 cvs_printf("total revisions: %u;\n", rf->rf_ndelta);  
         else {  
                 cvs_printf("total revisions: %u;\tselected revisions: %u\n",  
                     rf->rf_ndelta, nrev);  
   
                 if (!log_lhonly)          if (!log_honly || !log_lhonly)
                         cvs_printf("description:\n%s", rf->rf_desc);                  cvs_printf("\tselected revisions: %u", nrev);
   
           cvs_printf("\n");
   
           if (!log_honly || log_lhonly)
                   cvs_printf("description:\n%s", rf->rf_desc);
   
           if (!log_honly && !log_lhonly) {
                 TAILQ_FOREACH(rdp, &(rf->rf_delta), rd_list) {                  TAILQ_FOREACH(rdp, &(rf->rf_delta), rd_list) {
                         rcsnum_tostr(rdp->rd_num, numbuf, sizeof(numbuf));                          rcsnum_tostr(rdp->rd_num, numbuf, sizeof(numbuf));
                         cvs_printf(CVS_GETLOG_REVSEP "\nrevision %s\n", numbuf);                          cvs_printf(CVS_GETLOG_REVSEP "\nrevision %s\n", numbuf);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33