[p4] How do YOU identify the code set for a release?
'Lloyd Cha'
lccha-p4python at naos.org
Tue Jan 8 09:56:57 PST 2008
Once upon a time (like on Jan 08, 2008), Paul Goffin wrote:
> >One problem is that they weren't aware of a way to lock down labels such
> >that they couldn't be modified by anyone, including the owner or creator of
> >the label. The fear was that poorly behaved users would manually modify
> >the label to get that forgotten file into a release that had just been
> created.
>
> Set the label lock and, at the same time, set the owner to a non-existent
> user name.
I like this idea. In fact, I'm going to do something like this:
p4 label -o <labelname> | sed 's/^Owner:.*/Owner: LOCKED/; s/^\(Options:.*\s\)unlocked/\1locked/' | p4 label -i
The script still generates labels even though it doesn't actually use
them anymore. I'm actually trying to decide if I want to put the rest
of the label handling code back in or if I will run into other issues.
Thanks for the hints.
-L
More information about the perforce-user
mailing list