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

Diff for /src/usr.bin/rcs/rlog.c between version 1.5 and 1.6

version 1.5, 2005/10/13 12:35:30 version 1.6, 2005/10/24 16:14:15
Line 42 
Line 42 
   
 #define REVSEP          "----------------------------"  #define REVSEP          "----------------------------"
 #define REVEND \  #define REVEND \
  "============================================================================"   "============================================================================="
   
 static int hflag;  static int hflag;
 static int tflag;  static int tflag;
Line 91 
Line 91 
                 exit(1);                  exit(1);
         }          }
   
           if ((hflag == 1) && (tflag == 1))
                   cvs_log(LP_WARN, "warning: -t overrides -h.");
   
         for (i = 0; i < argc; i++) {          for (i = 0; i < argc; i++) {
                 if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)                  if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)
                         continue;                          continue;
Line 121 
Line 124 
         struct rcs_delta *rdp;          struct rcs_delta *rdp;
         struct rcs_access *acp;          struct rcs_access *acp;
   
         printf("Working file: %s", fname);          printf("\nWorking file: %s", fname);
         printf("\nhead:");          printf("\nhead:");
         if (file->rf_head != NULL)          if (file->rf_head != NULL)
                 printf(" %s", rcsnum_tostr(file->rf_head, numb, sizeof(numb)));                  printf(" %s", rcsnum_tostr(file->rf_head, numb, sizeof(numb)));
Line 151 
Line 154 
         printf("total revisions: %u\n", file->rf_ndelta);          printf("total revisions: %u\n", file->rf_ndelta);
   
         if ((hflag == 0) || (tflag == 1))          if ((hflag == 0) || (tflag == 1))
         printf("description: %s\n", file->rf_desc);          printf("description:\n%s", file->rf_desc);
   
         if ((hflag == 0) && (tflag == 0)) {          if ((hflag == 0) && (tflag == 0)) {
                 TAILQ_FOREACH(rdp, &(file->rf_delta), rd_list) {                  TAILQ_FOREACH(rdp, &(file->rf_delta), rd_list) {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6