<?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"
	>
<channel>
	<title>Comments on: Using TortoiseSVN from the Command Line</title>
	<atom:link href="http://www.methylblue.com/blog/using-tortoisesvn-from-the-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.methylblue.com/blog/using-tortoisesvn-from-the-command-line/</link>
	<description>The Future Comes Second</description>
	<pubDate>Fri, 21 Nov 2008 21:45:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: <img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/5e43be26c7aae5b.png" alt="adambe Identicon Icon" height="35" width="35" /> adambe</title>
		<link>http://www.methylblue.com/blog/using-tortoisesvn-from-the-command-line/#comment-134559</link>
		<dc:creator><img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/5e43be26c7aae5b.png" alt="adambe Identicon Icon" height="35" width="35" /> adambe</dc:creator>
		<pubDate>Wed, 06 Aug 2008 19:21:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.methylblue.com/blog/?p=297#comment-134559</guid>
		<description>That resulted in a "No such file or directory" error.
Below you may find a working fixed version which I've tested.
Changes:
1. Get the falg '/notempfile' outside the quotes... which fixes the error. Is there a way not to keep typing “$svn” /notempfile without getting the “No such file or directory” error?
2. Use `cygpath -was $path` to get the dos short name of the path - this supports more Window paths.

Please reply to adamb_e AT yahoo.com for comments.
Thanks, Adam.

#!/bin/sh
# Use TortoiseSVN from the cli
# Public Domain, Max Howell 2008

path=$2
test -z $path &#38;&#38; path=.
test -e $path &#38;&#38; path=`cygpath -was $path`

# Don't put a backslash if the path contains spaces.
#svn='/cygdrive/c/Program Files/TortoiseSVN/bin/TortoiseProc.exe'
svn='/cygdrive/c/dev/tools/TortoiseSVN/bin/TortoiseProc.exe /notempfile'

case $1 in
up &#124; update) "$svn" /notempfile /command:update /path:"$path";;
ci &#124; commit) "$svn" /notempfile /command:commit /path:"$path";;
log) "$svn" /notempfile /command:log /path:"$path";;
props) "$svn" /notempfile /command:properties /path:"$path";;
browse) "$svn" /notempfile /command:repobrowser /path:"$path";;
*) /usr/bin/svn $@;;
esac</description>
		<content:encoded><![CDATA[<p>That resulted in a &#8220;No such file or directory&#8221; error.<br />
Below you may find a working fixed version which I&#8217;ve tested.<br />
Changes:<br />
1. Get the falg &#8216;/notempfile&#8217; outside the quotes&#8230; which fixes the error. Is there a way not to keep typing “$svn” /notempfile without getting the “No such file or directory” error?<br />
2. Use `cygpath -was $path` to get the dos short name of the path - this supports more Window paths.</p>
<p>Please reply to adamb_e AT yahoo.com for comments.<br />
Thanks, Adam.</p>
<p>#!/bin/sh<br />
# Use TortoiseSVN from the cli<br />
# Public Domain, Max Howell 2008</p>
<p>path=$2<br />
test -z $path &amp;&amp; path=.<br />
test -e $path &amp;&amp; path=`cygpath -was $path`</p>
<p># Don&#8217;t put a backslash if the path contains spaces.<br />
#svn=&#8217;/cygdrive/c/Program Files/TortoiseSVN/bin/TortoiseProc.exe&#8217;<br />
svn=&#8217;/cygdrive/c/dev/tools/TortoiseSVN/bin/TortoiseProc.exe /notempfile&#8217;</p>
<p>case $1 in<br />
up | update) &#8220;$svn&#8221; /notempfile /command:update /path:&#8221;$path&#8221;;;<br />
ci | commit) &#8220;$svn&#8221; /notempfile /command:commit /path:&#8221;$path&#8221;;;<br />
log) &#8220;$svn&#8221; /notempfile /command:log /path:&#8221;$path&#8221;;;<br />
props) &#8220;$svn&#8221; /notempfile /command:properties /path:&#8221;$path&#8221;;;<br />
browse) &#8220;$svn&#8221; /notempfile /command:repobrowser /path:&#8221;$path&#8221;;;<br />
*) /usr/bin/svn $@;;<br />
esac</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/9fe266ac3e325bc.png" alt="Max Howell Identicon Icon" height="35" width="35" /> Max Howell</title>
		<link>http://www.methylblue.com/blog/using-tortoisesvn-from-the-command-line/#comment-134372</link>
		<dc:creator><img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/9fe266ac3e325bc.png" alt="Max Howell Identicon Icon" height="35" width="35" /> Max Howell</dc:creator>
		<pubDate>Wed, 06 Aug 2008 11:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.methylblue.com/blog/?p=297#comment-134372</guid>
		<description>I amended the script above, just add quotes around the $svn usage.

I suggest avoiding using spaces in paths that contain tools.</description>
		<content:encoded><![CDATA[<p>I amended the script above, just add quotes around the $svn usage.</p>
<p>I suggest avoiding using spaces in paths that contain tools.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/9de5a629d4ecf53.png" alt="adambe Identicon Icon" height="35" width="35" /> adambe</title>
		<link>http://www.methylblue.com/blog/using-tortoisesvn-from-the-command-line/#comment-132823</link>
		<dc:creator><img class="identicon" src="http://www.methylblue.com/blog/wp-content/plugins/wp-identicon/identicon/9de5a629d4ecf53.png" alt="adambe Identicon Icon" height="35" width="35" /> adambe</dc:creator>
		<pubDate>Sun, 03 Aug 2008 20:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.methylblue.com/blog/?p=297#comment-132823</guid>
		<description>How to get this script to work when TortoiseSVN is installed in a path with spaces? For example:

&lt;blockquote&gt;svn='/cygdrive/c/Program\ Files/TortoiseSVN/bin/TortoiseProc.exe /notempfile'&lt;/blockquote&gt;

Please reply to adamb_eyahoo.com. Thanks!

Adam B.E</description>
		<content:encoded><![CDATA[<p>How to get this script to work when TortoiseSVN is installed in a path with spaces? For example:</p>
<blockquote><p>svn=&#8217;/cygdrive/c/Program\ Files/TortoiseSVN/bin/TortoiseProc.exe /notempfile&#8217;</p></blockquote>
<p>Please reply to adamb_eyahoo.com. Thanks!</p>
<p>Adam B.E</p>
]]></content:encoded>
	</item>
</channel>
</rss>
