[Cpp]
<PRE class = plain name = "code"> </PRE>
<PRE> </PRE>
<P> TortoiseSVN settings-General settings-subversion configuration file-edit <BR>
Or <BR>
Windows XP in the C: \ Documents ents and Settings \ Administrator \ Application Data \ Subversion \ config file <BR>
Windows7 is in the C: \ Users \ Administrator \ AppData \ Roaming \ Subversion \ config file <BR>
Note: Administrator is the user name <BR>
<BR>
<BR>
</P>
<P> <SPAN style = "COLOR: rgb (255, 0, 0)"> Step 1: </SPAN> <BR>
Uncomment enable-auto-props (delete the previous #): <BR>
Enable-auto-props = yes <BR>
<BR>
<BR>
<SPAN style = "COLOR: # ff0000"> Step 2: </SPAN> <BR>
[Auto-props] Add below <BR>
[Auto-props] <BR>
*. C = svn: keywords = Author Date Id Revision URL Header <BR>
*. Cpp = svn: keywords = Author Date Id Revision URL Header <BR>
*. H = svn: keywords = Author Date Id Revision URL Header </P>
<P> <BR>
Add your own extensions. <BR>
If you need more keywords, separate them by spaces. </P>
<P> example: <SPAN style = "COLOR: # ff0000"> svn: keywords = Author Date Id Revision URL Header </SPAN> <BR>
<BR>
Certificate -------- <BR>
The above method is only valid for new SVN files. to append an existing SVN file to $ Id $ for identification, run the following command: <BR>
<SPAN style = "WHITE-SPACE: pre"> svn propset svn: keywords "Id" </SPAN> </P>
<P> <BR>
</P>
<P> common. h. cpp file headers </P>
<P> </P>
<PRE class = cpp name = "code"> /**
@ (#) $ Id $
@ Brief Multi-threaded programming critical section (lock)
@ Author $
@ Date $
@ Revision $
@ URL $
@ Header $
*/
</PRE> <BR>
<BR>
<P> </P>
<P> <BR>
Set attributes of common files <BR>
</P>
<P> </P>
<PRE class = plain name = "code"> # Image formats
*. Bmp = svn: mime-type = image/bmp
*. Gif = svn: mime-type = image/gif
*. Ico = svn: mime-type = image/ico
*. Jpeg = svn: mime-type = image/jpeg
*. Jpg = svn: mime-type = image/jpeg
*. Png = svn: mime-type = image/png
*. Tif = svn: mime-type = image/tiff
*. Tiff = svn: mime-type = image/tiff
# Data formats
*. Pdf = svn: mime-type = application/pdf
*. Avi = svn: mime-type = video/avi
*. Doc = svn: mime-type = application/msword
*. Eps = svn: mime-type = application/postscript
*. Gz = svn: mime-type = application/gzip
*. Mov = svn: mime-type = video/quicktime
*. Mp3 = svn: mime-type = audio/mpeg
*. Ppt = svn: mime-type = application/vnd. ms-powerpoint
*. Ps = svn: mime-type = application/postscript
*. Psd = svn: mime-type = application/photoshop
*. Rtf = svn: mime-type = text/rtf
*. Swf = svn: mime-type = application/x-shockwave-flash
*. Tgz = svn: mime-type = application/gzip
*. Wav = svn: mime-type = audio/wav
*. Xls = svn: mime-type = application/vnd. ms-excel
*. Zip = svn: mime-type = application/zip
# Text formats
. Htaccess = svn: eol-style = native; svn: mime-type = text/plain
*. Css = svn: eol-style = native; svn: mime-type = text/css
*. Dtd = svn: eol-style = native; svn: mime-type = text/xml
*. Htm = svn: eol-style = native; svn: mime-type = text/html
*. Html = svn: eol-style = native; svn: mime-type = text/html
*. Ini = svn: eol-style = native; svn: mime-type = text/plain
*. SQL = svn: eol-style = native; svn: mime-type = text/x-SQL; svn: keywords = Id
*. Txt = svn: eol-style = native; svn: mime-type = text/plain
*. Xhtml = svn: eol-style = native; svn: mime-type = text/xhtml + xml
*. Xml = svn: eol-style = native; svn: mime-type = text/xml
# Code formats
*. Js = svn: eol-style = native; svn: mime-type = text/javascript
*. Inc = svn: eol-style = native; svn: mime-type = text/x-php
*. Php = svn: eol-style = native; svn: mime-type = text/x-php; svn: keywords = Id </PRE> <BR>
<BR>
<P> </P>