<?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>Development Blog &#187; svn</title>
	<atom:link href="http://blog.yeticode.co.uk/tag/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yeticode.co.uk</link>
	<description>John Tindell's Blog For Development Related Things</description>
	<lastBuildDate>Mon, 09 Jan 2012 01:21:38 +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>SVN Notify by Email</title>
		<link>http://blog.yeticode.co.uk/2009/10/svn-notify-by-email/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=svn-notify-by-email</link>
		<comments>http://blog.yeticode.co.uk/2009/10/svn-notify-by-email/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 23:45:49 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Development Log]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.yeticode.co.uk/?p=601</guid>
		<description><![CDATA[Svn hook to email you information in post commit hook. Install svnnotify which will be used to send the email yum install perl-CPAN perl -MCPAN -e 'install SVN::Notify' perl -MCPAN -e 'install SVN::Notify::HTML::ColorDiff' The post-commit script #!/bin/sh for i in 'email1@domain.co.uk' 'email2@domain.com' do svnnotify --repos-path "$1" \ --revision "$2" \ --to $i \ --from account@example.co.uk [...]]]></description>
			<content:encoded><![CDATA[<p>Svn hook to email you information in post commit hook.</p>
<p>Install svnnotify which will be used to send the email</p>
<pre name="code" class="sh">
yum install perl-CPAN
perl -MCPAN -e 'install SVN::Notify'
perl -MCPAN -e 'install SVN::Notify::HTML::ColorDiff'
</pre>
<p>The post-commit script</p>
<pre name="code" class="sh">
#!/bin/sh
for i in 'email1@domain.co.uk' 'email2@domain.com'
do
	svnnotify --repos-path "$1" \
		--revision "$2" \
		--to $i \
		--from <a href="mailto:account@example.co.uk">account@example.co.uk</a> \
		--handler HTML::ColorDiff -d \
done
</pre>]]></content:encoded>
			<wfw:commentRss>http://blog.yeticode.co.uk/2009/10/svn-notify-by-email/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SVN Log to Latex</title>
		<link>http://blog.yeticode.co.uk/2009/04/svn-log-to-latex/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=svn-log-to-latex</link>
		<comments>http://blog.yeticode.co.uk/2009/04/svn-log-to-latex/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 14:48:42 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Development Log]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.yeticode.co.uk/?p=152</guid>
		<description><![CDATA[Needed to add a table of my svn log into my project write up so created a simple style sheet that would parse the xml output from svn. The xslt only generates the table svnlog-gen.sh #usage svnlog-gen.sh [repo-path] [output-file] svn log --xml $1 > tmp.out; xsltproc svnlog.xslt tmp.out > $2; rm tmp.out svnlog.xslt Example Output]]></description>
			<content:encoded><![CDATA[<p>Needed to add a table of my svn log into my project write up so created a simple style sheet that would parse the xml output from svn. The xslt only generates the table </p>
<p>svnlog-gen.sh</p>
<pre name="code">
#usage svnlog-gen.sh [repo-path] [output-file]
svn log --xml $1 > tmp.out; xsltproc svnlog.xslt tmp.out > $2; rm tmp.out
</pre>
<p><a href="http://dev.yeticode.co.uk/jt/dev/svnlog.xslt">svnlog.xslt</a></p>
<p><a href="http://dev.yeticode.co.uk/jt/dev/svnlog.png" rel="lightbox">Example Output</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.yeticode.co.uk/2009/04/svn-log-to-latex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple SVN WordPress Widget</title>
		<link>http://blog.yeticode.co.uk/2009/04/simple-svn-wordpress-widget/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=simple-svn-wordpress-widget</link>
		<comments>http://blog.yeticode.co.uk/2009/04/simple-svn-wordpress-widget/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 17:43:15 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Off Topic]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yeticode.co.uk/?p=123</guid>
		<description><![CDATA[After getting bored on working on my final year project I decided to take a look at creating widgets word my blog. There are SVN hooks on my repositories that store the commit details in a SQL database. I thought I would create a widget that would pull out the last message and display it. [...]]]></description>
			<content:encoded><![CDATA[<p>After getting bored on working on my final year project I decided to take a look at creating widgets word my blog. There are SVN hooks on my repositories that store the commit details in a SQL database. I thought I would create a widget that would pull out the last message and display it. </p>
<pre name="code" class="php">
/*
Plugin Name: LastCommit
Plugin URI: <a href="http://blog.yeticode.co.uk/" rel="nofollow">http://blog.yeticode.co.uk/</a>
Description: Gets Last Commit Message
Author: John Tindell
Version: 1
Author URI: <a href="http://blog.yeticode.co.uk/" rel="nofollow">http://blog.yeticode.co.uk/</a>
*/
function lastCommit_widget() {

	$server = 'localhost';
	$link = mssql_connect($server, 'username', '************');
	echo '
<li class="widget">';
	echo "
<h2>Last Commit</h2>

";
	if($link)
	{
		mssql_select_db('svnyeti', $link);
		$query = mssql_query('select top 1 * from SVNLog order by liLogEntryPk desc', $link);
		$row = mssql_fetch_array($query);
		print '
<p ><i>' . $row['lszLogEntry'] . '</i></p >';
	}
	echo ' </li>

';
}
function init_lastCommit(){
	register_sidebar_widget("LastCommit", "lastCommit_widget");
}
add_action("plugins_loaded", "init_lastCommit");
</pre>
<p>When I get more time I will develop this a bit more.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.yeticode.co.uk/2009/04/simple-svn-wordpress-widget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

