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

Diff for /src/usr.bin/cvs/commit.c between version 1.76 and 1.77

version 1.76, 2006/06/28 17:59:06 version 1.77, 2006/06/28 18:52:05
Line 160 
Line 160 
         BUF *b;          BUF *b;
         int isnew;          int isnew;
         int l, openflags, rcsflags;          int l, openflags, rcsflags;
         char *d, *f, rbuf[24];          char *d, *f, rbuf[24], nbuf[24];
         CVSENTRIES *entlist;          CVSENTRIES *entlist;
         char *attic, *repo, *rcsfile;          char *attic, *repo, *rcsfile;
   
Line 231 
Line 231 
                 commit_desc_set(cf);                  commit_desc_set(cf);
         }          }
   
         cvs_printf("Checking in %s:\n", cf->file_path);          if (verbosity > 1) {
         cvs_printf("%s <- %s\n", cf->file_rpath, cf->file_path);                  cvs_printf("Checking in %s:\n", cf->file_path);
         cvs_printf("old revision: %s; ", rbuf);                  cvs_printf("%s <- %s\n", cf->file_rpath, cf->file_path);
                   cvs_printf("old revision: %s; ", rbuf);
           }
   
         if (isnew == 0)          if (isnew == 0)
                 d = commit_diff_file(cf);                  d = commit_diff_file(cf);
Line 281 
Line 283 
         rcs_write(cf->file_rcs);          rcs_write(cf->file_rcs);
   
         if (cf->file_status == FILE_REMOVED) {          if (cf->file_status == FILE_REMOVED) {
                 strlcpy(rbuf, "Removed", sizeof(rbuf));                  strlcpy(nbuf, "Removed", sizeof(nbuf));
         } else if (cf->file_status == FILE_ADDED) {          } else if (cf->file_status == FILE_ADDED) {
                 if (cf->file_rcs->rf_dead == 1)                  if (cf->file_rcs->rf_dead == 1)
                         strlcpy(rbuf, "Initial Revision", sizeof(rbuf));                          strlcpy(nbuf, "Initial Revision", sizeof(nbuf));
                 else                  else
                         rcsnum_tostr(cf->file_rcs->rf_head,                          rcsnum_tostr(cf->file_rcs->rf_head,
                             rbuf, sizeof(rbuf));                              nbuf, sizeof(nbuf));
         } else if (cf->file_status == FILE_MODIFIED) {          } else if (cf->file_status == FILE_MODIFIED) {
                 rcsnum_tostr(cf->file_rcs->rf_head, rbuf, sizeof(rbuf));                  rcsnum_tostr(cf->file_rcs->rf_head, nbuf, sizeof(nbuf));
         }          }
   
         cvs_printf("new revision: %s\n", rbuf);          if (verbosity > 1)
                   cvs_printf("new revision: %s\n", nbuf);
   
         (void)unlink(cf->file_path);          (void)unlink(cf->file_path);
         (void)close(cf->fd);          (void)close(cf->fd);
Line 333 
Line 336 
                 xfree(attic);                  xfree(attic);
         }          }
   
         cvs_printf("done\n");          if (verbosity > 1)
                   cvs_printf("done\n");
           else {
                   cvs_log(LP_NOTICE, "checking in '%s'; revision %s -> %s",
                       cf->file_path, rbuf, nbuf);
           }
 }  }
   
 static char *  static char *

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77