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

Diff for /src/usr.bin/cvs/add.c between version 1.68 and 1.69

version 1.68, 2007/01/12 19:28:12 version 1.69, 2007/01/13 15:45:59
Line 246 
Line 246 
 static void  static void
 add_file(struct cvs_file *cf)  add_file(struct cvs_file *cf)
 {  {
         BUF *b;  
         int added, stop;          int added, stop;
         char revbuf[16];          char revbuf[16];
         RCSNUM *head;          RCSNUM *head;
Line 274 
Line 273 
   
                         /* Restore the file. */                          /* Restore the file. */
                         head = rcs_head_get(cf->file_rcs);                          head = rcs_head_get(cf->file_rcs);
                         b = rcs_getrev(cf->file_rcs, head);                          cvs_checkout_file(cf, head, 0);
                         rcsnum_free(head);                          rcsnum_free(head);
   
                         if (b == NULL)  
                                 fatal("cvs_add_local: failed to get HEAD");  
   
                         cvs_checkout_file(cf, head, b, 0);  
                         cvs_printf("U %s\n", cf->file_path);                          cvs_printf("U %s\n", cf->file_path);
   
                         cvs_log(LP_NOTICE, "%s, version %s, resurrected",                          cvs_log(LP_NOTICE, "%s, version %s, resurrected",

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69