GenSpecMgr subclass for Groups. Groups don't
have an update date so we have to depend on revert -a doing the honours.
"p4 groups" also doesn't support tagged output at the moment
(2002.1) so what are hashes in the other classes are just group names in
this one.
Constructor. Provide the client root and tagged and non-tagged P4 client
instances
# File specsaver.rb, line 379
def initialize( root, p4t, p4u )
super( "group", root, p4t, p4u )
end
Protected Instance methods |
Groups are always considered to have changed - until proven otherwise so we
override the GenSpecMgr implementation of
changed? and always return true
# File specsaver.rb, line 390
def changed?( group, since )
true
end
Map a group name into a depot path. Can't use the default implementation as
we don't have a hash available, just a group name
# File specsaver.rb, line 398
def spec_file( group )
@root + "/#{@type}s/" + group
end
Convert a type and a group name into a group name. Pretty simple really.
# File specsaver.rb, line 405
def type2name( type, group )
group
end