[p4] typemap with +k

Jamie.Echlin@barclayscapital.com Jamie.Echlin at barclayscapital.com
Thu Mar 8 03:48:27 PST 2007


Hi,

We have a particular area of the depot where we want +k on text files,
regardless of type (pl, pm, java and so on)... So we naively changed the
typemap to have:

+k //depot/somearea/...

Assuming that the +k would only apply to text files. Now this area also
contains various binary files, images and excel templates, many of which
I now see are "corrupted" by the keyword expansion. 

Short of listing ALL the file extensions where we may ever want the
keyword expansion, is there any alternative? In ClearCase for instance
you have a "plain text" test, so you can say, is it plain text? If so
store it as xyz... 

I guess a post-commit trigger could accomplish the same thing, as you
could be a bit more intelligent about what is plain text. In general I
don't like relying on extensions, many programs use the same extension
name for storage of different files, and on unix having a file extension
is not so much a convention.

Cheers, jamie

------------------------------------------------------------------------
For more information about Barclays Capital, please visit our web site at http://www.barcap.com.

Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message.  Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed.  Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group.  Replies to this email may be monitored by the Barclays Group for operational or business reasons.
------------------------------------------------------------------------



More information about the perforce-user mailing list