class P4::DepotFile

*****************************************************************************

P4::DepotFile class.
Each DepotFile entry contains details about one depot file.

*****************************************************************************

Attributes

depot_file[R]
head_action[RW]
head_change[RW]
head_rev[RW]
head_time[RW]
head_type[RW]
revisions[R]

Public Class Methods

new( name ) click to toggle source
# File lib/P4.rb, line 600
def initialize( name )
  @depot_file = name
  @revisions = Array.new
  @headAction = @head_type = @head_time = @head_rev = @head_change = nil
end

Public Instance Methods

each_revision() { |r| ... } click to toggle source
# File lib/P4.rb, line 615
def each_revision
  @revisions.each { |r| yield( r ) }
end
new_revision() click to toggle source
# File lib/P4.rb, line 609
def new_revision
  r = P4::Revision.new( @depot_file )
  @revisions.push( r )
  return r
end