[p4] How to manage state information of files.

Weintraub, David david.weintraub at bofasecurities.com
Tue Aug 29 05:55:48 PDT 2006


There is an "undocumented" feature called the file attributes. Of
course, this "undocumented" feature is documented under the "p4 help
undoc" command.

It is very similar to attributes under ClearCase and Subversion except
there is a rather neat "-p" flag that will keep the attribute on each
subsequent version of a file when it is checked back in. Attributes can
only be applied to the version opened for editing. The only real
drawback (besides being officially undocumented) is that the only way to
see the attribute is under the "p4 fstat" command. (Again, see "p4 help
undoc" to see the undocumented features of the "p4 fstat" command that
relates to attributes.

Attributes are nicer than labels because they're paired values while a
label is a single value. For example, a label could be INSPECTED, or
FAIL_INSPECTION, but it doesn't mention what that means. While an
attribute "code_inspection" could have a value of "PASSED" or "FAILED".

It all depends how much you are willing to depend upon an undocumented
feature. I believe that P4V and p4win already make use of the attribute
feature.

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Maynard, James
(FN,IE) @ Nautronix
Sent: Monday, August 28, 2006 10:39 PM
To: perforce-user at perforce.com
Subject: [p4] How to manage state information of files.

We have a requirement to manage the Code Inspection state of files that
are under source control. For Quality Assurance, we want to know what
version of the file and when they were code inspected.

Does anyone have any ideas as to how best to implement this. We used rcs
tags in the past.

James Maynard
Senior Software Engineer
L-3 Communications Nautronix Limited ABN 28 009 019 603
108 Marine Terrace, Fremantle, WA 6160, Australia T +61 (0) 8 9431 0000,
F +61 (0) 8 9430 5901 E james.maynard at nautronix.com.au
www.L-3Com.com/nautronix


-- 

CONFIDENTIALITY NOTE:This electronic transmission, including all
attachments, is directed in confidence solely to the person(s) to whom
it is addressed, or an authorized recipient, and may not otherwise be
distributed, copied or disclosed.
The contents of the transmission may also be subject to intellectual
property rights and all such rights are expressly claimed and are not
waived. If you have received this transmission in error, please notify
the sender immediately by return electronic transmission and then
immediately delete this transmission, including all attachments, without
copying, distributing or disclosing same.
_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user


More information about the perforce-user mailing list