Class P4::DepotFile

Description

Utility class providing easy access to the attributes of a file in a Perforce depot. Each P4::DepotFile object contains summary information about the file, and a list of revisions (P4::Revision objects) of that file. Currently, only the P4#run_filelog() method returns an array of P4::DepotFile objects.

Class Methods

None.

Instance Methods

df.depot_file -> aString

Returns the name of the depot file to which this object refers.

df.each_revision { |rev| block } -> revArray

Iterates over each revision of the depot file.

df.revisions -> aArray

Returns an array of revisions of the depot file.