<TITLE>Filetypes</TITLE> <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?help">changing filetypes</a>. You can also use this format when opening files for <a href="add?help">add</a>, <a href="edit?help">edit</a>, or <a href="integrate?help">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>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 12234 | Matt Attaway |
Rejigger P4Web project in preparation for official sunsetting The bin directory contains the last official builds of P4Web from the Perforce download site. P4Web is soon to be completely sunsetted; these builds are here for folks who don't want to build their own. To better handle the archived builds the source code has been moved into a separate src directory. |
||
//guest/perforce_software/p4web/Help/help_filetypes.html | |||||
#1 | 8914 | Matt Attaway | Initial add of the P4Web source code |