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

Diff for /src/usr.bin/rcs/co.c between version 1.124 and 1.125

version 1.124, 2019/01/09 18:00:45 version 1.125, 2019/04/26 19:11:01
Line 394 
Line 394 
                             !(flags & CO_REVERT))                              !(flags & CO_REVERT))
                                 (void)fprintf(stderr, " (unlocked)\n");                                  (void)fprintf(stderr, " (unlocked)\n");
                 }                  }
           } else {
                   if (file->rf_ndelta != 0) {
                           if (!(flags & QUIET) && !(flags & NEWFILE) &&
                               !(flags & CO_REVERT))
                                   (void)fprintf(stderr, "\n");
                   }
         }          }
   
         if ((flags & (PIPEOUT|FORCE)) == 0 && stat(dst, &st) != -1) {          if ((flags & (PIPEOUT|FORCE)) == 0 && stat(dst, &st) != -1) {
Line 444 
Line 450 
             ((flags & CO_LOCK) || (flags & CO_UNLOCK))) {              ((flags & CO_LOCK) || (flags & CO_UNLOCK))) {
                 (void)fprintf(stderr, "no revisions, so nothing can be %s\n",                  (void)fprintf(stderr, "no revisions, so nothing can be %s\n",
                     (flags & CO_LOCK) ? "locked" : "unlocked");                      (flags & CO_LOCK) ? "locked" : "unlocked");
         } else if (file->rf_ndelta != 0) {  
                 /* XXX - Not a good way to detect if a newline is needed. */  
                 if (!(flags & QUIET) && !(flags & NEWFILE) &&  
                     !(flags & CO_REVERT))  
                         (void)fprintf(stderr, "\n");  
         }          }
   
         if (flags & CO_LOCK) {          if (flags & CO_LOCK) {

Legend:
Removed from v.1.124  
changed lines
  Added in v.1.125