[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.87 and 1.88

version 1.87, 2006/04/29 05:31:28 version 1.88, 2006/05/05 01:29:59
Line 231 
Line 231 
   
 /*  /*
  * Checkout revision <rev> from RCSFILE <file>, writing it to the path <dst>   * Checkout revision <rev> from RCSFILE <file>, writing it to the path <dst>
  * Currenly recognised <flags> are CO_LOCK, CO_UNLOCK and CO_REVDATE.   * Currently recognised <flags> are CO_LOCK, CO_UNLOCK and CO_REVDATE.
  *   *
  * Looks up revision based upon <lockname>, <author>, <state> and <date>   * Looks up revision based upon <lockname>, <author>, <state> and <date>
  *   *
Line 349 
Line 349 
             !(flags & CO_REVERT) && file->rf_ndelta != 0)              !(flags & CO_REVERT) && file->rf_ndelta != 0)
                 printf("revision %s", buf);                  printf("revision %s", buf);
   
         if (!(flags & QUIET) && (flags & CO_REVERT))  
                 printf("done");  
   
         if (file->rf_ndelta != 0) {          if (file->rf_ndelta != 0) {
                 if ((bp = rcs_getrev(file, rev)) == NULL) {                  if ((bp = rcs_getrev(file, rev)) == NULL) {
                         warnx("cannot find revision `%s'", buf);                          warnx("cannot find revision `%s'", buf);
Line 424 
Line 421 
                 warnx("no revisions, so nothing can be %s",                  warnx("no revisions, so nothing can be %s",
                     (flags & CO_LOCK) ? "locked" : "unlocked");                      (flags & CO_LOCK) ? "locked" : "unlocked");
         } else if (file->rf_ndelta != 0) {          } else if (file->rf_ndelta != 0) {
                 if (!(flags & QUIET) && !(flags & NEWFILE))                  /* XXX - Not a good way to detect if a newline is needed. */
                   if (!(flags & QUIET) && !(flags & NEWFILE) &&
                       !(flags & CO_REVERT))
                         printf("\n");                          printf("\n");
         }          }
   

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.88