<HTML><HEAD><TITLE>P4Web User Guide - Filetypes</TITLE></HEAD><BODY><FONT SIZE=-1><B>P4Web Release 2012.1 User Guide</B></FONT><BR>
<FONT SIZE=-1><B><A HREF="quickstart.html">[Getting Started]</A> <A HREF="howto.html">[How To...]</A> <A HREF="tips.html">[Browser Tips]</A> <A HREF="defs.html">[Glossary]</A> <A HREF="roadmap.html">[Road Map]</A> </B></FONT><BR>
<H3>Filetypes</H3>
<p>
When you add a new file to a Perforce depot, Perforce stores
its contents according to its type.
In addition, Perforce uses a file's type to determine how it gets
written into a client workspace.
<p> A Perforce filetype consists of a <i>base</i> type (text, binary, etc.) plus
<i>modifiers</i> (uncompressed, writeable, etc.). You specify a Perforce filetype
as <i>base+modifier(s)</i>. For example:
<pre>
text+kx
</pre>
is an executable text file with keyword expansion. Its base type is "text"; its
modifiers are "keyword expansion" and "executable". Use this format when <a href="filetype.html">changing
filetypes</a>. You can also use this format when opening files for <a href="add.html">add</a>,
<a href="edit.html">edit</a>, or <a href="integrate.html">integrate</a>, to override
the default filetype.
<h4>Base filetypes</h4>
<P>
<TABLE BORDER=3>
<TR>
<TH><STRONG>Type</STRONG></TH>
<TH><STRONG>Client workspace appearance</STRONG></TH>
<TH><STRONG>Perforce server storage</STRONG></TH>
</TR>
<TR>
<TD><KBD>text</KBD></TD>
<TD>Text</TD>
<TD>Text; reverse-delta (RCS) format</TD>
</TR>
<TR>
<TD><KBD>binary</KBD></TD>
<TD>Raw bytes</TD>
<TD>One file per revision; compressed</TD>
</TR>
<TR>
<TD><KBD>symlink</KBD></TD>
<TD>Symbolic link on Unix; text on other platforms</TD>
<TD>Text; content is name of linked file</TD>
</TR>
<TR>
<TD><KBD>resource</KBD></TD>
<TD>Unicode file</TD>
<TD>Stored as UTF-8</TD>
</TR>
<TR>
<TD><KBD>apple</KBD></TD>
<TD>Mac resource + data</TD>
<TD>One file per revision; compressed</TD>
</TR>
<TR>
<TD><KBD>unicode</KBD></TD>
<TD>Mac resource fork</TD>
<TD>One file per revision; compressed</TD>
</TR>
</TABLE>
<h4>Filetype modifiers</h4>
<P>
<TABLE BORDER=3>
<TR>
<TH><STRONG>Modifier</STRONG></TH>
<TH>
<div align="left"><STRONG>Description</STRONG></div>
</TH>
</TR>
<TR><TD><KBD>+m</KBD></TD><TD>Workspace file's modtime is set to submit time instead of sync time</TD></TR>
<TR><TD><KBD>+w</KBD></TD><TD>Workspace file is writable</TD></TR>
<TR><TD><KBD>+x</KBD></TD><TD>Workspace file is executable</TD></TR>
<TR><TD><KBD>+k</KBD></TD><TD>Workspace file has RCS keywords expanded</TD></TR>
<TR><TD><KBD>+ko</KBD></TD>
<TD>Workspace file has RCS keywords expanded (ID + Header only)</TD>
</TR>
<TR><TD><KBD>+l</KBD></TD><TD>Server allows only one user and workspace at a time to have the file opened</TD></TR>
<TR><TD><KBD>+S</KBD></TD><TD>Server stores only single head revision</TD></TR>
<TR><TD><KBD>+C</KBD></TD><TD>Server stores each revision as compressed binary</TD></TR>
<TR><TD><KBD>+D</KBD></TD><TD>Server stores each revision as text deltas</TD></TR>
<TR><TD><KBD>+F</KBD></TD><TD>Server stores uncompressed file content</TD></TR>
</TABLE>
<P>
The following type aliases exist for backwards compatibility with earlier
revisions of Perforce:
<P>
<TABLE BORDER=3>
<TR>
<TH><STRONG>Type</STRONG></TH>
<TH><STRONG>Is Base Type</STRONG></TH>
<TH><STRONG>Plus Modifiers</STRONG></TH>
</TR>
<TR>
<TD><KBD>ctext</KBD></TD>
<TD><KBD>text</KBD></TD>
<TD><KBD>+C</KBD></TD>
</TR>
<TR>
<TD><KBD>cxtext</KBD></TD>
<TD><KBD>text</KBD></TD>
<TD><KBD>+Cx</KBD></TD>
</TR>
<TR>
<TD><KBD>ktext</KBD></TD>
<TD><KBD>text</KBD></TD>
<TD><KBD>+k</KBD></TD>
</TR>
<TR>
<TD><KBD>kxtext</KBD></TD>
<TD><KBD>text</KBD></TD>
<TD><KBD>+kx</KBD></TD>
</TR>
<TR>
<TD><KBD>ltext</KBD></TD>
<TD><KBD>text</KBD></TD>
<TD><KBD>+F</KBD></TD>
</TR>
<TR>
<TD><KBD>tempobj</KBD></TD>
<TD><KBD>binary</KBD></TD>
<TD><KBD>+Sw</KBD></TD>
</TR>
<TR>
<TD><KBD>ubinary</KBD></TD>
<TD><KBD>binary</KBD></TD>
<TD><KBD>+F</KBD></TD>
</TR>
<TR>
<TD><KBD>xbinary</KBD></TD>
<TD><KBD>binary</KBD></TD>
<TD><KBD>+x</KBD></TD>
</TR>
<TR>
<TD><KBD>xltext</KBD></TD>
<TD><KBD>text</KBD></TD>
<TD><KBD>+Fx</KBD></TD>
</TR>
<TR>
<TD><KBD>xtempobj</KBD></TD>
<TD><KBD>binary</KBD></TD>
<TD><KBD>+Swx</KBD></TD>
</TR>
<TR>
<TD><KBD>xtext</KBD></TD>
<TD><KBD>text</KBD></TD>
<TD><KBD>+x</KBD></TD>
</TR>
</TABLE>
<P>
<HR>
<FONT SIZE=-1><I>
Copyright 2012 <A HREF="http://www.perforce.com">Perforce Software</A>.
All rights reserved.
</I></FONT>
</BODY></HTML>