views:

84

answers:

1

Perforce manual says that if you want to automatically expand RCS keywords in file contents, you have to specify some type for them (i.e. +k or +ko).

Is there a way to specify file type based on it's extension globally for the whole depot or its subdirectory?

For example, Subversion has such a feature called auto-props.

+5  A: 

You can define a "typemap" which will automatically assign a default filetype based on extension, and hence have "text+ko" the default.

http://www.perforce.com/perforce/doc.current/manuals/cmdref/typemap.html

araqnid
Note that the typemap only applies to new files; you will have to open any existing files for edit, change their filetype, and submit.
Timbo