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

Diff for /src/usr.bin/cvs/status.c between version 1.67 and 1.68

version 1.67, 2006/07/07 13:01:40 version 1.68, 2006/07/07 17:37:17
Line 20 
Line 20 
   
 #include "cvs.h"  #include "cvs.h"
 #include "log.h"  #include "log.h"
   #include "remote.h"
   
 int     cvs_status(int, char **);  
 void    cvs_status_local(struct cvs_file *);  void    cvs_status_local(struct cvs_file *);
   
 static int show_sym = 0;  static int show_sym = 0;
Line 61 
Line 61 
         char *arg = ".";          char *arg = ".";
         struct cvs_recursion cr;          struct cvs_recursion cr;
   
         flags = CR_REPO | CR_RECURSE_DIRS;          flags = CR_RECURSE_DIRS;
   
         while ((ch = getopt(argc, argv, cvs_cmd_status.cmd_opts)) != -1) {          while ((ch = getopt(argc, argv, cvs_cmd_status.cmd_opts)) != -1) {
                 switch (ch) {                  switch (ch) {
Line 83 
Line 83 
   
         cr.enterdir = NULL;          cr.enterdir = NULL;
         cr.leavedir = NULL;          cr.leavedir = NULL;
         cr.fileproc = cvs_status_local;  
           if (current_cvsroot->cr_method == CVS_METHOD_LOCAL) {
                   flags |= CR_REPO;
                   cr.fileproc = cvs_status_local;
           } else {
                   if (!(flags & CR_RECURSE_DIRS))
                           cvs_client_send_request("Argument -l");
                   if (show_sym)
                           cvs_client_send_request("Argument -v");
                   cr.fileproc = cvs_client_sendfile;
           }
   
         cr.flags = flags;          cr.flags = flags;
   
         if (argc > 0)          if (argc > 0)
                 cvs_file_run(argc, argv, &cr);                  cvs_file_run(argc, argv, &cr);
         else          else
                 cvs_file_run(1, &arg, &cr);                  cvs_file_run(1, &arg, &cr);
   
           if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {
                   cvs_client_send_files(argv, argc);
                   cvs_client_senddir(".");
                   cvs_client_send_request("status");
                   cvs_client_get_responses();
           }
   
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68