parameters: ()
docstring: Tags the DOC and MPC repositories for the version
docstring_summary: Tags the DOC and MPC repositories for the version
docstring_tokens: Tags the DOC and MPC repositories for the version
function: def tag ():
      """ Tags the DOC and MPC repositories for the version """
      global comp_versions, opts
  
      branch = "ACE+TAO+CIAO-%d_%d_%d" % (comp_versions["ACE_major"],
                                          comp_versions["ACE_minor"],
                                          comp_versions["ACE_beta"])
  
      if opts.take_action:
          # Tag middleware
          svn_client.copy (opts.repo_root + "/trunk",
                          opts.repo_root + "/tags/" + branch)
  
          # Tag MPC
          svn_client.copy (opts.mpc_root + "/trunk",
                          opts.mpc_root + "/tags/" + branch)
  
          # Update latest tag
          # mcorino@remedy.nl - subversion does not seem to support propset directly
          #                     on URLs (except for some strange reason through propedit)
          #if opts.release_type == "major":
              #update_latest_tag ("Major", branch)
          #elif opts.release_type == "minor":
              #update_latest_tag ("Minor", branch)
          #elif opts.release_type == "beta":
              #update_latest_tag ("Beta", branch)
              #update_latest_tag ("Micro", branch)
              #if comp_versions["ACE_beta"] == 1:
                      #update_latest_tag ("BFO", branch)
      else:
          print "Creating tags:\n"
          print opts.repo_root + "/trunk -> " + opts.repo_root + "/tags/" + branch + "\n"
          print opts.mpc_root + "/trunk -> " + opts.mpc_root + "/tags/" + branch + "\n"
function_tokens: def tag ( ) : global comp_versions , opts branch = "ACE+TAO+CIAO-%d_%d_%d" % ( comp_versions [ "ACE_major" ] , comp_versions [ "ACE_minor" ] , comp_versions [ "ACE_beta" ] ) if opts . take_action : # Tag middleware svn_client . copy ( opts . repo_root + "/trunk" , opts . repo_root + "/tags/" + branch ) # Tag MPC svn_client . copy ( opts . mpc_root + "/trunk" , opts . mpc_root + "/tags/" + branch ) # Update latest tag # mcorino@remedy.nl - subversion does not seem to support propset directly #                     on URLs (except for some strange reason through propedit) #if opts.release_type == "major": #update_latest_tag ("Major", branch) #elif opts.release_type == "minor": #update_latest_tag ("Minor", branch) #elif opts.release_type == "beta": #update_latest_tag ("Beta", branch) #update_latest_tag ("Micro", branch) #if comp_versions["ACE_beta"] == 1: #update_latest_tag ("BFO", branch) else : print "Creating tags:\n" print opts . repo_root + "/trunk -> " + opts . repo_root + "/tags/" + branch + "\n" print opts . mpc_root + "/trunk -> " + opts . mpc_root + "/tags/" + branch + "\n"