Class DepotMgr
In: specsaver.rb
Parent: GenSpecMgr

GenSpecMgr subclass for Depots. "p4 depots" doesn't support tagged mode so we have to do some extra work.

Methods
changed?    list_specs    new    spec_file    type2name   
Public Class methods
new( root, p4t, p4u )

Constructor. Provide the client root and tagged and non-tagged P4 client instances

# File specsaver.rb, line 423
    def initialize( root, p4t, p4u )
	super( "depot", root, p4t, p4u )
    end
Protected Instance methods
changed?( depot, since )

Depots are always considered to have changed - until proven otherwise so we just return true here.

# File specsaver.rb, line 433
    def changed?( depot, since )
	true
    end
spec_file( depot )

Map a depot name to a path in the depot for archiving the spec

# File specsaver.rb, line 440
    def spec_file( depot )
	@root + "/#{@type}s/" + depot
    end
type2name( type, depot )

Convert a type and a depot name into a depot name. Pretty simple really

# File specsaver.rb, line 447
    def type2name( type, depot )
	depot
    end
list_specs()

Generate a list of depots. Needs custom implementation because "p4 depots" doesn't support tagged mode.

# File specsaver.rb, line 455
    def list_specs
	@p4t.run_depots.collect do
	    |rec|
	    rec.split[ 1 ]
	end
    end