GenSpecMgr subclass for Depots. "p4
depots" doesn't support tagged mode so we have to do some extra work.
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 |
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
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
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
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