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

Diff for /src/usr.bin/cvs/annotate.c between version 1.34 and 1.35

version 1.34, 2007/01/11 17:44:18 version 1.35, 2007/01/13 20:59:49
Line 107 
Line 107 
 void  void
 cvs_annotate_local(struct cvs_file *cf)  cvs_annotate_local(struct cvs_file *cf)
 {  {
         struct cvs_line *lp;  
         struct cvs_lines *lines;  
         BUF *b;  
         RCSNUM *ann_rev;  
         char *content;  
         size_t len;  
   
         ann_rev = NULL;  
   
         cvs_log(LP_TRACE, "cvs_annotate_local(%s)", cf->file_path);          cvs_log(LP_TRACE, "cvs_annotate_local(%s)", cf->file_path);
   
         cvs_file_classify(cf, NULL, 0);          cvs_file_classify(cf, NULL, 0);
Line 126 
Line 117 
   
         cvs_printf("Annotations for %s", cf->file_name);          cvs_printf("Annotations for %s", cf->file_name);
         cvs_printf("\n***************\n");          cvs_printf("\n***************\n");
           cvs_printf("no code yet\n");
         if (rev != NULL)  
                 ann_rev = rcs_translate_tag(rev, cf->file_rcs);  
         else {  
                 ann_rev = rcsnum_alloc();  
                 rcsnum_cpy(cf->file_rcs->rf_head, ann_rev, 0);  
         }  
   
         b = rcs_getrev(cf->file_rcs, ann_rev);  
         cvs_buf_putc(b, '\0');  
   
         len = cvs_buf_len(b);  
         content = cvs_buf_release(b);  
         if ((lines = cvs_splitlines(content, len)) == NULL)  
                 fatal("cvs_annotate_local: cvs_splitlines failed");  
   
         xfree(content);  
   
         /* XXX */  
         TAILQ_FOREACH(lp, &(lines->l_lines), l_list) {  
                 if (lp->l_line == NULL)  
                         continue;  
   
                 cvs_printf("%s\n", lp->l_line);  
         }  
         cvs_freelines(lines);  
   
         if (ann_rev != NULL)  
                 rcsnum_free(ann_rev);  
 }  }

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35