lib/capistrano/recipes/deploy/scm/accurev.rb in capistrano-2.14.2 vs lib/capistrano/recipes/deploy/scm/accurev.rb in capistrano-2.15.0

- old
+ new

@@ -12,13 +12,13 @@ # # When using this module in a project, the following variables are used: # * :repository - This should match the depot that code lives in. If your code # exists in a subdirectory, you can append the path depot. # eg. foo-depot/bar_dir - # * :stream - The stream in the depot that code should be pulled from. If + # * :stream - The stream in the depot that code should be pulled from. If # left blank, the depot stream will be used - # * :revision - Should be in the form 'stream/transaction'. + # * :revision - Should be in the form 'stream/transaction'. class Accurev < Base include REXML default_command 'accurev' # Defines pseudo-revision value for the most recent changes to be deployed. @@ -52,14 +52,14 @@ transaction_id = XPath.first(hist_doc, '//AcResponse/transaction/@id').value InternalRevision.new(stream, transaction_id).to_s end 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. # 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 + # 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}") @@ -87,11 +87,11 @@ scm(:hist, '-s', from_rev.stream, '-t', "#{to_rev.transaction_id}-#{from_rev.transaction_id}"), "sed -e '/transaction #{from_rev.transaction_id}/ { Q }'" ].join(' | ') end - # Returns the command needed to show the diff between what is deployed and what is + # Returns the command needed to show the diff between what is deployed and what is # pending. Because Accurev can not do this task without creating some streams, # two time basis streams will be created for the purposes of doing the diff. def diff(from, to=head) from = InternalRevision.parse(from) to = InternalRevision.parse(to) @@ -154,10 +154,10 @@ def psuedo_revision? @transaction_id == 'highest' end def to_s - "#{stream}/#{transaction_id}" + "#{stream}/#{transaction_id}" end def ==(other) (stream == other.stream) && (transaction_id == other.transaction_id) end