[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.70 and 1.71

version 1.70, 2006/04/06 10:13:00 version 1.71, 2006/04/09 19:22:23
Line 313 
Line 313 
                 }                  }
         }          }
   
         if ((verbose == 1) && !(flags & NEWFILE))          if ((verbose == 1) && !(flags & NEWFILE) && !(flags & CO_REVERT))
                 printf("revision %s", buf);                  printf("revision %s", buf);
   
           if ((verbose == 1) && (flags & CO_REVERT))
                   printf("done");
   
   
         if ((bp = rcs_getrev(file, rev)) == NULL) {          if ((bp = rcs_getrev(file, rev)) == NULL) {
Line 346 
Line 349 
                 mode = st.st_mode &                  mode = st.st_mode &
                     (S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH);                      (S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH);
                 mode |= S_IWUSR;                  mode |= S_IWUSR;
                 if ((verbose == 1) && !(flags & NEWFILE))                  if ((verbose == 1) && !(flags & NEWFILE)
                       && !(flags & CO_REVERT))
                         printf(" (locked)");                          printf(" (locked)");
         } else if (flags & CO_UNLOCK) {          } else if (flags & CO_UNLOCK) {
                 if (rcs_lock_remove(file, lockname, rev) < 0) {                  if (rcs_lock_remove(file, lockname, rev) < 0) {
Line 357 
Line 361 
                 /* Strip all write bits from mode */                  /* Strip all write bits from mode */
                 mode = st.st_mode &                  mode = st.st_mode &
                     (S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH);                      (S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH);
                 if ((verbose == 1) && !(flags & NEWFILE))                  if ((verbose == 1) && !(flags & NEWFILE)
                       && !(flags & CO_REVERT))
                         printf(" (unlocked)");                          printf(" (unlocked)");
         }          }
   
Line 365 
Line 370 
                 printf("\n");                  printf("\n");
   
         if (flags & CO_LOCK) {          if (flags & CO_LOCK) {
                 lcount++;                  if (rcs_errno != RCS_ERR_DUPENT)
                 if ((verbose == 1) && (lcount > 1))                          lcount++;
                   if ((verbose == 1) && (lcount > 1) && !(flags & CO_REVERT))
                         cvs_log(LP_WARN, "%s: warning: You now have %d locks.",                          cvs_log(LP_WARN, "%s: warning: You now have %d locks.",
                             file->rf_path, lcount);                              file->rf_path, lcount);
         }          }

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71