lib/capistrano/recipes/deploy/scm/accurev.rb
# Pops a copy of the code for the specified Accurev revision identifier. 
# The revision identifier is represented as a stream & transaction ID combo.
# Accurev can only pop a particular transaction if a stream is created on the server
# with a time basis of that transaction id. Therefore, we will create a stream with 
# the required criteria and pop that.
Pops a copy of the code for the specified Accurev revision identifier.
The revision identifier is represented as a stream & transaction ID combo.
Accurev can only pop a particular transaction if a stream is created on the server
with a time basis of that transaction id. Therefore, we will create a stream with
the required criteria and pop that.
Pops a copy of the code for the specified Accurev revision identifier . The revision identifier is represented as a stream & transaction ID combo . Accurev can only pop a particular transaction if a stream is created on the server with a time basis of that transaction id . Therefore we will create a stream with the required criteria and pop that .
def export(revision_id, destination)
          revision = InternalRevision.parse(revision_id)
          logger.debug("Exporting #{revision.stream}/#{revision.transaction_id} to #{destination}")
          commands = [
            change_or_create_stream("#{revision.stream}-capistrano-deploy", revision),
            "mkdir -p #{destination}",
            scm_quiet(:pop, "-Rv #{stream}", "-L #{destination}", "'/./#{subdir}'")
          ]
          if subdir
            commands.push(
              "mv #{destination}/#{subdir}/* #{destination}",
              "rm -rf #{File.join(destination, subdir)}"
            )
          end
          commands.join(' && ')
        end
def export ( revision_id , destination ) revision = InternalRevision . parse ( revision_id ) logger . debug ( "Exporting #{revision.stream}/#{revision.transaction_id} to #{destination}" ) commands = [ change_or_create_stream ( "#{revision.stream}-capistrano-deploy" , revision ) , "mkdir -p #{destination}" , scm_quiet ( :pop , "-Rv #{stream}" , "-L #{destination}" , "'/./#{subdir}'" ) ] if subdir commands . push ( "mv #{destination}/#{subdir}/* #{destination}" , "rm -rf #{File.join(destination, subdir)}" ) end commands . join ( ' && ' ) end
Pops a copy of the code for the specified Accurev revision identifier.
Pops a copy of the code for the specified Accurev revision identifier .
revision_id
<not_specific>
destination
<not_specific>