[p4] typemap with +k
Jamison, Shawn
sjamison at ciena.com
Thu Mar 8 04:48:40 PST 2007
I had the same kind of issue with a different OS.
You will need to implement and rely on file extensions and/or naming
conventions.
Otherwise remove the global +k type mapping and you or your developers
will have to manually add the +k type map to all new files.
At least that is what I had to do...the file extensions and naming
conventions part that is!
-Shawn J>
Perforce Admin
Ciena Corp.
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of
Jamie.Echlin at barclayscapital.com
Sent: Thursday, March 08, 2007 6:48 AM
To: perforce-user at perforce.com
Subject: [p4] typemap with +k
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.
------------------------------------------------------------------------
_______________________________________________
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