<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Outside the Rabbitt Hole &#187; keywords</title>
	<atom:link href="http://www.tranquillo.net/tag/keywords/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tranquillo.net</link>
	<description>Currently adventuring in Norwalk, CT (USA)</description>
	<lastBuildDate>Fri, 05 Mar 2010 00:30:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SVN and Automatic Keyword Expansion Setup</title>
		<link>http://www.tranquillo.net/2010/03/04/svn-and-automatic-keyword-expansion-setup/</link>
		<comments>http://www.tranquillo.net/2010/03/04/svn-and-automatic-keyword-expansion-setup/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 00:15:51 +0000</pubDate>
		<dc:creator>Rabbitt</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[keywords]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.tranquillo.net/?p=4</guid>
		<description><![CDATA[So in order to ensure that $Id$ keyword expansion happens on new files that enter subversion, it’s necessary to make some configuration changes to your subversion client.]]></description>
			<content:encoded><![CDATA[<p>So in order to ensure that $Id$ keyword expansion happens on new files that enter subversion, it’s necessary to make some configuration changes to your subversion client. Those people using TortoiseSVN can change their svn config file by doing the following:</p>
<ol>
<li>Right click on any Windows Folder</li>
<li>Select TortoiseSVN-&gt;Setting</li>
<li>Click on the ‘Edit’ for Subversion configuration file (which will open the configuration up in Notepad, or something similar).</li>
</ol>
<p>Unix users can find their config file located in $HOME/.subversion/config and can use any of vim, emacs, nano or pico to edit the configuration (or whatever your personal flavor of editor is).</p>
<p>In either case, once you have opened the file, search for the sections [miscellany] and [auto-props] and then use what follows to make your configuration look similar.</p>
<blockquote><p><code><br />
[miscellany]<br />
enable-auto-props = yes</code></p>
<p>[auto-props]<br />
*.php = svn:eol-style=native;svn:keywords=Id<br />
*.pl  = svn:executable;svn:keywords=Id<br />
*.sh = svn:eol-style=native;svn:executable;svn:keywords=Id<br />
*.txt = svn:eol-style=native<br />
*.png = svn:mime-type=image/png<br />
*.jpg = svn:mime-type=image/jpeg<br />
*.gif = svn:mime-type=image/gif<br />
*.xml = svn:eol-style=native<br />
*.xsl = svn:eol-style=native<br />
*.xsd = svn:eol-style=native<br />
*.html = svn:eol-style=native<br />
*.css = svn:eol-style=native;svn:keywords=Id<br />
*.js  = svn:eol-style=native;svn:keywords=Id</p></blockquote>
<p>This sets a couple of svn properties when adding files of the types listed above:</p>
<ul>
<li>Adds keyword “Id” (aka $Id$ expansion) to .css, .js, .pl, and .sh files (we can do this for more files if you guys want).</li>
<li>Set’s the end of line style (CRLF for windows, LF for *nix) to native for every textual file listed (meaning when a windows user checks out the file, they get it normalized to CRLF and a nix user get’s normalized to LF &#8211; the normalization happens transparently by your subversion client and internally in the repository they are stored using LF).</li>
<li>Some files are automatically marked as executable (perl and shell script files)</li>
<li>Images have their mime-type set appropriately so that subversion knows that files containing those extensions (.gif, .png, .jpg) are binary type files. This has an added benefit of allowing the subversion apache module to send the correct Content-Type header for the file without having to guess.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tranquillo.net/2010/03/04/svn-and-automatic-keyword-expansion-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
