<?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: Leveraging Subversion Hooks for Fun and Profit</title>
	<atom:link href="http://www.agileweboperations.com/leveraging-subversion-hooks-for-fun-and-profit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.agileweboperations.com/leveraging-subversion-hooks-for-fun-and-profit/</link>
	<description>Helping web developers and operations bridge the deployment gap</description>
	<lastBuildDate>Fri, 19 Mar 2010 21:00:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan Ackerson</title>
		<link>http://www.agileweboperations.com/leveraging-subversion-hooks-for-fun-and-profit/comment-page-1/#comment-112</link>
		<dc:creator>Dan Ackerson</dc:creator>
		<pubDate>Wed, 07 Jan 2009 15:29:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=498#comment-112</guid>
		<description>nice idea, Michal. Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>nice idea, Michal. Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.agileweboperations.com/leveraging-subversion-hooks-for-fun-and-profit/comment-page-1/#comment-111</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Wed, 07 Jan 2009 15:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=498#comment-111</guid>
		<description>We have a requirement to use subversion 1.5+ clients, because of a merge tracking feature. To ensure that only 1.5+ clients are in use I have created a start-commit hook that checks for the capabilities parameter - capabilities are also a new feature that came with 1.5, and a &quot;mergeinfo&quot; capability is always there for these clients, so I allow only commits from clients that have this.

The start-commit hook looks like this:

&lt;code lang=&quot;bash&quot;&gt;
#!/bin/sh
REPOS=&quot;$1&quot;
USER=&quot;$2&quot;
CAPABILITIES=&quot;$3&quot;

# allow only subversion 1.5 and higher to commit - this way we make sure that the whole team installs version 1.5 of subversion that supports merge tracking
if echo $CAPABILITIES &#124; grep &#039;mergeinfo&#039; &gt; /dev/null; then
  exit 0
else
  echo &quot;&quot; 1&gt;&amp;2
  echo &quot;Commit failed ! Please use at least subversion 1.5.&quot; 1&gt;&amp;2
  exit 1
fi
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>We have a requirement to use subversion 1.5+ clients, because of a merge tracking feature. To ensure that only 1.5+ clients are in use I have created a start-commit hook that checks for the capabilities parameter &#8211; capabilities are also a new feature that came with 1.5, and a &#8220;mergeinfo&#8221; capability is always there for these clients, so I allow only commits from clients that have this.</p>
<p>The start-commit hook looks like this:</p>
<p><code lang="bash"><br />
#!/bin/sh<br />
REPOS="$1"<br />
USER="$2"<br />
CAPABILITIES="$3"</p>
<p># allow only subversion 1.5 and higher to commit - this way we make sure that the whole team installs version 1.5 of subversion that supports merge tracking<br />
if echo $CAPABILITIES | grep 'mergeinfo' &gt; /dev/null; then<br />
  exit 0<br />
else<br />
  echo "" 1&gt;&amp;2<br />
  echo "Commit failed ! Please use at least subversion 1.5." 1&gt;&amp;2<br />
  exit 1<br />
fi<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Ackerson</title>
		<link>http://www.agileweboperations.com/leveraging-subversion-hooks-for-fun-and-profit/comment-page-1/#comment-108</link>
		<dc:creator>Dan Ackerson</dc:creator>
		<pubDate>Sun, 04 Jan 2009 19:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=498#comment-108</guid>
		<description>Exactly. I&#039;m also trying to learn more about the codebase as well (therefore, I&#039;m enforcing commits with a valid ticket id if applicable too). The CI will be phase two for us, and once we get some test driven development going, I will probably be able to turn off those emails.</description>
		<content:encoded><![CDATA[<p>Exactly. I&#8217;m also trying to learn more about the codebase as well (therefore, I&#8217;m enforcing commits with a valid ticket id if applicable too). The CI will be phase two for us, and once we get some test driven development going, I will probably be able to turn off those emails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian Simpson</title>
		<link>http://www.agileweboperations.com/leveraging-subversion-hooks-for-fun-and-profit/comment-page-1/#comment-107</link>
		<dc:creator>Julian Simpson</dc:creator>
		<pubDate>Sun, 04 Jan 2009 16:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=498#comment-107</guid>
		<description>Dan, nice article.  One thing I was wondering about was the email notifications - I find I need these less and less as CI comes of age.  Assuming that your outsourcing means that you want some very detailed records of svn activity? :)</description>
		<content:encoded><![CDATA[<p>Dan, nice article.  One thing I was wondering about was the email notifications &#8211; I find I need these less and less as CI comes of age.  Assuming that your outsourcing means that you want some very detailed records of svn activity? <img src='http://www.agileweboperations.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
