Contents

Class P4Revision < Object require "P4"

Description

Utility class providing easy access to the revisions of a file in a Perforce depot. P4Revision objects can store basic information about revisions and a list of the integrations for that revision

Class Methods

new
new   P4Revision.new( aString ) -> aP4Revision
Constructs a new P4Revision object for the named depot file.

Instance Methods

action change client depot_file desc each_integration integration integrations revno time type user
action   rev.action -> aString
Returns the name of the action which gave rise to this revision of the file.
change   rev.change -> aNumber
Returns the change number that gave rise to this revision of the file.
client   rev.client -> aString
Returns the name of the client from which this revision was submitted.
depot_file   rev.depot_file -> aString
Returns the name of the depot file this object refers to.
desc   rev.desc -> aString
Returns the description of the change which created this revision. Note
each_integration   rev.each_integration { |integ| block } -> integArray
Iterates over each the integration records for this revision of the depot file.
integration   rev.integration( how, file, srev, erev ) -> aP4Integration
Adds a new integration record to the revision returning the integration record.
integrations   rev.integrations -> integArray
Returns the list of integrations for this revision
revno   rev.revno -> aNumber
Returns the number of this revision of the file
time   rev.time -> aTime
Returns the date/time that this revision was created.
type   rev.type -> aString
Returns this revisions Perforce type
user   rev.user -> aString
Returns the name of the user who created this revision.

See Also

P4 P4Exception P4DepotFile P4Integration P4::Spec