<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: getSubversionRevision UDF</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2009/01/07/getsubversionrevision-udf/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2009/01/07/getsubversionrevision-udf/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2009/01/07/getsubversionrevision-udf/comment-page-1/#comment-153974</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Fri, 09 Jan 2009 19:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=595#comment-153974</guid>
		<description>Brian,

Yeah, it has the same problem.  The downside is that you reset cache too often, but it&#039;s not overly significant unless the target file for the revision is changing a lot.  In my actual usage, I&#039;m using the revision of my &#039;static&#039; directory for all the stuff within in.  So when I change any static asset, all of them get a new number.  But I don&#039;t change static assets very often, far less often than I change CFML files, so I still get a significant caching improvement.  I could do it per file, but the benefits weren&#039;t worth the complexity, so I skipped it.</description>
		<content:encoded><![CDATA[<p>Brian,</p>
<p>Yeah, it has the same problem.  The downside is that you reset cache too often, but it's not overly significant unless the target file for the revision is changing a lot.  In my actual usage, I'm using the revision of my 'static' directory for all the stuff within in.  So when I change any static asset, all of them get a new number.  But I don't change static assets very often, far less often than I change CFML files, so I still get a significant caching improvement.  I could do it per file, but the benefits weren't worth the complexity, so I skipped it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>https://www.barneyb.com/barneyblog/2009/01/07/getsubversionrevision-udf/comment-page-1/#comment-153971</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 09 Jan 2009 19:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=595#comment-153971</guid>
		<description>I was taking this was running from Application.cfc - I see now that it would only take the value of Application.cfc versus the HEAD.  That still seems to have the same problems though - if you&#039;re using this to set revision numbers for caching on JS and CSS, you&#039;re setting it based on an unrelated file?  I guess the drawbacks are offset by the use case - personal sites where you don&#039;t sweat the deployment details so much.

I run all of my wordpress sites via SVN similar to what you described above... svn switch to the next tag.</description>
		<content:encoded><![CDATA[<p>I was taking this was running from Application.cfc &#8211; I see now that it would only take the value of Application.cfc versus the HEAD.  That still seems to have the same problems though &#8211; if you're using this to set revision numbers for caching on JS and CSS, you're setting it based on an unrelated file?  I guess the drawbacks are offset by the use case &#8211; personal sites where you don't sweat the deployment details so much.</p>
<p>I run all of my wordpress sites via SVN similar to what you described above&#8230; svn switch to the next tag.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2009/01/07/getsubversionrevision-udf/comment-page-1/#comment-153969</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Fri, 09 Jan 2009 19:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=595#comment-153969</guid>
		<description>Brian,

It depends on what file/directory you&#039;re checking the revision number of.  If you check jquery.js, then no, it won&#039;t change until you actually update jquery.js.  At a lower level, this is returning the last revision for the given file/directory, not the HEAD revision of the working copy.

Where I don&#039;t deploy a svn working directory (i.e. use an Ant/Rsync deploy mechanism), I do pretty much the same thing.  Write out a VersionInfo.cfc file that has all kinds of info about the release (name, revision, date, builder, etc.)</description>
		<content:encoded><![CDATA[<p>Brian,</p>
<p>It depends on what file/directory you're checking the revision number of.  If you check jquery.js, then no, it won't change until you actually update jquery.js.  At a lower level, this is returning the last revision for the given file/directory, not the HEAD revision of the working copy.</p>
<p>Where I don't deploy a svn working directory (i.e. use an Ant/Rsync deploy mechanism), I do pretty much the same thing.  Write out a VersionInfo.cfc file that has all kinds of info about the release (name, revision, date, builder, etc.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>https://www.barneyb.com/barneyblog/2009/01/07/getsubversionrevision-udf/comment-page-1/#comment-153962</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 09 Jan 2009 19:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=595#comment-153962</guid>
		<description>Side note, I address this via an Ant script which gets the current revision number and puts it into a Coldspring-managed SimpleConfiguration file which I can use anywhere in my site (the config bean is put in the model-glue event bucket onRequestStart, so it&#039;s available to every view).</description>
		<content:encoded><![CDATA[<p>Side note, I address this via an Ant script which gets the current revision number and puts it into a Coldspring-managed SimpleConfiguration file which I can use anywhere in my site (the config bean is put in the model-glue event bucket onRequestStart, so it's available to every view).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>https://www.barneyb.com/barneyblog/2009/01/07/getsubversionrevision-udf/comment-page-1/#comment-153961</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 09 Jan 2009 19:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=595#comment-153961</guid>
		<description>Barney - doesn&#039;t this approach though reset all of the caching every time you deploy a single file?  The revision of your application will always be the most recent commit version so even if you haven&#039;t changed jquery.js in 2 years, if you change test.cfm you&#039;re going to have a new m=XXX value, no?</description>
		<content:encoded><![CDATA[<p>Barney &#8211; doesn't this approach though reset all of the caching every time you deploy a single file?  The revision of your application will always be the most recent commit version so even if you haven't changed jquery.js in 2 years, if you change test.cfm you're going to have a new m=XXX value, no?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
