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

Diff for /src/usr.bin/cvs/diff.c between version 1.77 and 1.78

version 1.77, 2006/01/25 11:13:18 version 1.78, 2006/01/27 15:26:38
Line 572 
Line 572 
         /* at this point, the file is modified */          /* at this point, the file is modified */
         cvs_rcs_getpath(cf, rcspath, sizeof(rcspath));          cvs_rcs_getpath(cf, rcspath, sizeof(rcspath));
   
         rf = rcs_open(rcspath, RCS_READ);          if ((rf = rcs_open(rcspath, RCS_READ)) == NULL)
         if (rf == NULL) {                  fatal("cvs_diff_local: rcs_open `%s': %s", rcspath,
                 return (CVS_EX_DATA);                      strerror(rcs_errno));
         }  
   
         cvs_printf("Index: %s\n%s\nRCS file: %s\n", diff_file,          cvs_printf("Index: %s\n%s\nRCS file: %s\n", diff_file,
             RCS_DIFF_DIV, rcspath);              RCS_DIFF_DIV, rcspath);
Line 583 
Line 582 
         if (dap->rev1 == NULL)          if (dap->rev1 == NULL)
                 r1 = cf->cf_lrev;                  r1 = cf->cf_lrev;
         else {          else {
                 if ((r1 = rcsnum_parse(dap->rev1)) == NULL) {                  if ((r1 = rcsnum_parse(dap->rev1)) == NULL)
                         rcs_close(rf);                          fatal("cvs_diff_local: rcsnum_parse failed");
                         return (CVS_EX_DATA);  
                 }  
         }          }
   
         cvs_printf("retrieving revision %s\n",          cvs_printf("retrieving revision %s\n",

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78