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

Diff for /src/usr.bin/cvs/tag.c between version 1.49 and 1.50

version 1.49, 2006/07/02 21:11:54 version 1.50, 2006/11/09 09:24:28
Line 19 
Line 19 
   
 #include "cvs.h"  #include "cvs.h"
 #include "log.h"  #include "log.h"
   #include "remote.h"
   
 int     cvs_tag(int, char **);  int     cvs_tag(int, char **);
 void    cvs_tag_local(struct cvs_file *);  void    cvs_tag_local(struct cvs_file *);
Line 26 
Line 27 
 static int tag_del(struct cvs_file *);  static int tag_del(struct cvs_file *);
 static int tag_add(struct cvs_file *);  static int tag_add(struct cvs_file *);
   
 static int      tag_delete = 0;  static int       tag_delete = 0;
 static int      tag_force_move = 0;  static int       tag_force_move = 0;
 static char     *tag = NULL;  static char     *tag = NULL;
 static char     *tag_date = NULL;  static char     *tag_date = NULL;
 static char     *tag_name = NULL;  static char     *tag_name = NULL;
Line 109 
Line 110 
   
         cr.enterdir = NULL;          cr.enterdir = NULL;
         cr.leavedir = NULL;          cr.leavedir = NULL;
         cr.fileproc = cvs_tag_local;  
           if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) {
                   cr.fileproc = cvs_client_sendfile;
   
                   if (tag_delete == 1)
                           cvs_client_send_request("Argument -d");
   
                   if (tag_force_move == 1)
                           cvs_client_send_request("Argument -F");
   
                   if (!(flags & CR_RECURSE_DIRS))
                           cvs_client_send_request("Argument -l");
   
                   if (tag_oldname != NULL)
                           cvs_client_send_request("Argument -r%s", tag_oldname);
   
                   cvs_client_send_request("Argument %s", tag_name);
           } else {
                   cr.fileproc = cvs_tag_local;
           }
   
         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("tag");
                   cvs_client_get_responses();
           }
   
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50