<?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>Thoughts from Mads Sülau Jørgensen &#187; Mercurial</title> <atom:link href="http://madssj.com/blog/tag/mercurial/feed/" rel="self" type="application/rss+xml" /><link>http://madssj.com/blog</link> <description>Various articles about programming and systems administration.</description> <lastBuildDate>Mon, 27 Jun 2011 08:54:43 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Using mercurial with eclipse to edit actionscript files on os x</title><link>http://madssj.com/blog/2009/03/11/using-mercurial-with-eclipse-to-edit-actionscript-files-on-os-x/</link> <comments>http://madssj.com/blog/2009/03/11/using-mercurial-with-eclipse-to-edit-actionscript-files-on-os-x/#comments</comments> <pubDate>Wed, 11 Mar 2009 09:38:33 +0000</pubDate> <dc:creator>Mads Sülau Jørgensen</dc:creator> <category><![CDATA[Actionscript]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Work]]></category> <category><![CDATA[Mercurial]]></category> <guid
isPermaLink="false">http://swag.dk/blog/2009/03/11/using-mercurial-with-eclipse-to-edit-actionscript-files-on-os-x/</guid> <description><![CDATA[We have recently switched to use mercurial as our DVCS. We&#8217;re hosting our many repositories on bitbucket. I love it. When it comes to actionscript files, flash has always had odd newlines. For some reason, it has always used r &#8230; <a
href="http://madssj.com/blog/2009/03/11/using-mercurial-with-eclipse-to-edit-actionscript-files-on-os-x/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a
href="http://www.konstellation.dk/">We</a> have recently switched to use <a
href="http://www.selenic.com/mercurial/wiki/">mercurial</a> as our DVCS. We&#8217;re hosting our many repositories on <a
href="http://bitbucket.org/">bitbucket</a>.</p><p>I love it.</p><p>When it comes to actionscript files, flash has always had odd newlines. For some reason, it has always used <code>r</code> as it&#8217;s newline. Mercurial, beeing a unix tool, likes it&#8217;s newlines to be <code>n</code>. So what better to do, than to make mercurial encode/decode the files for us.</p><p>To do that, we can simply add the following to our <code>.hgrc</code> file:</p><pre>
[encode]
*.as = perl -pe 's/r/n/g'
[decode]
*.as = perl -pe 's/r/n/g'
</pre><p>I don&#8217;t really know wether the decode part is necessary, but I like to keep it around (if someone should commit poison).</p> ]]></content:encoded> <wfw:commentRss>http://madssj.com/blog/2009/03/11/using-mercurial-with-eclipse-to-edit-actionscript-files-on-os-x/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
