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

Diff for /src/usr.bin/cvs/remove.c between version 1.48 and 1.49

version 1.48, 2006/05/29 08:19:09 version 1.49, 2006/05/30 21:00:42
Line 78 
Line 78 
         else          else
                 cvs_file_run(1, &arg, &cr);                  cvs_file_run(1, &arg, &cr);
   
           if (existing != 0) {
                   cvs_log(LP_ERR, "%d file(s) exist, remove them first",
                       existing);
           }
   
           if (removed != 0) {
                   if (verbosity > 1)
                           cvs_log(LP_NOTICE, "use '%s commit' to remove %s "
                               "permanently", __progname, (removed > 1) ?
                               "these files" : "this file");
           }
   
         return (0);          return (0);
 }  }
   
Line 172 
Line 184 
                         cf->file_status = FILE_REMOVED;                          cf->file_status = FILE_REMOVED;
                         removed++;                          removed++;
                         break;                          break;
                 }  
         }  
   
         if (cf->file_status == FILE_REMOVED) {  
                 if (verbosity > 0)  
                         cvs_log(LP_NOTICE, "use '%s commit' to remove %s "  
                             "permanently", __progname,  
                             (removed == 1) ? "this file" : "these files");  
         } else {  
                 if (cf->fd != -1) {  
                         cvs_log(LP_ERR, existing == 1 ?  
                             "%d file exists; remove it first" :  
                             "%d files exist; remove them first", existing);  
                 }                  }
         }          }
 }  }

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49