<?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: Useful subversion shell aliases</title>
	<atom:link href="http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/</link>
	<description>...so google can index my head.</description>
	<lastBuildDate>Thu, 02 Sep 2010 06:25:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Quinn Taylor</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-190522</link>
		<dc:creator>Quinn Taylor</dc:creator>
		<pubDate>Tue, 21 Apr 2009 23:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-190522</guid>
		<description>@Ben Holt

Thanks for posting your blame alias, it&#039;s a handy idea! I tweaked it a bit, and though I haven&#039;t added the svn log functionality, I have made it work with 0 or more line number arguments (When you don&#039;t supply any, it prints the entire blame output with line numbers.)

&lt;code&gt;
svnblame() {
	if [ $# -lt 1 ]
	then
		echo &quot;Please specify a file to examine for blame data.&quot;
	else
		resource=&quot;$1&quot;
		blame=$(svn blame &quot;$resource&quot; &#124; cat -n)
		if [ $# -lt 2 ]
		then
			echo &quot;$blame&quot;
		else
			shift
			while [ $# -ne 0 ]; do
				echo &quot;=== &quot;$resource&quot;:&quot;$1
				echo &quot;$blame&quot; &#124; egrep --context=3 &quot;^[[:space:]]*$1\b&quot;
				shift
			done
		fi
	fi
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@Ben Holt</p>
<p>Thanks for posting your blame alias, it&#8217;s a handy idea! I tweaked it a bit, and though I haven&#8217;t added the svn log functionality, I have made it work with 0 or more line number arguments (When you don&#8217;t supply any, it prints the entire blame output with line numbers.)</p>
<p><code><br />
svnblame() {<br />
	if [ $# -lt 1 ]<br />
	then<br />
		echo "Please specify a file to examine for blame data."<br />
	else<br />
		resource="$1"<br />
		blame=$(svn blame "$resource" | cat -n)<br />
		if [ $# -lt 2 ]<br />
		then<br />
			echo "$blame"<br />
		else<br />
			shift<br />
			while [ $# -ne 0 ]; do<br />
				echo "=== "$resource":"$1<br />
				echo "$blame" | egrep --context=3 "^[[:space:]]*$1\b"<br />
				shift<br />
			done<br />
		fi<br />
	fi<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extra Pepperoni &#187; BBEdit and Subversion: the Fruit Roll-up Post</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-52503</link>
		<dc:creator>Extra Pepperoni &#187; BBEdit and Subversion: the Fruit Roll-up Post</dc:creator>
		<pubDate>Fri, 29 Dec 2006 06:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-52503</guid>
		<description>[...] I use vi daily, but much prefer BBEdit. The way I integrate them has evolved over time (see previous posts here, Useful subversion shell aliases, and BBEdit Gems (which appears to be down right now). In particular, I no longer configure BBEdit directly in ~/.subversion/config. [...]</description>
		<content:encoded><![CDATA[<p>[...] I use vi daily, but much prefer BBEdit. The way I integrate them has evolved over time (see previous posts here, Useful subversion shell aliases, and BBEdit Gems (which appears to be down right now). In particular, I no longer configure BBEdit directly in ~/.subversion/config. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Pepper</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-37219</link>
		<dc:creator>Chris Pepper</dc:creator>
		<pubDate>Wed, 01 Nov 2006 05:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-37219</guid>
		<description>Der! &#039;AM&#039; is equivalent to &#039;A&#039; for this purpose, not to &#039;M&#039;.</description>
		<content:encoded><![CDATA[<p>Der! &#8216;AM&#8217; is equivalent to &#8216;A&#8217; for this purpose, not to &#8216;M&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Pepper</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-37217</link>
		<dc:creator>Chris Pepper</dc:creator>
		<pubDate>Wed, 01 Nov 2006 05:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-37217</guid>
		<description>Some improved aliases for use with BBEdit:

alias A=&#039;bbedit&#039;
alias AM=&#039;svn diff --diff-cmd bbdiff --extensions &quot;--resume --wait&quot;&#039;
alias C=&#039;bbedit&#039;
alias D=&#039;true&#039;
alias G=&#039;svn diff --diff-cmd bbdiff --extensions &quot;--resume --wait&quot;&#039;
alias I=&#039;true&#039;
alias M=&#039;svn diff --diff-cmd bbdiff --extensions &quot;--resume --wait&quot;&#039;
alias R=&#039;svn diff --diff-cmd bbdiff --extensions &quot;--resume --wait&quot;&#039;
alias U=&#039;bbedit&#039;

This week I&#039;m reviewing the total changes over about 50 revisions, when I wasn&#039;t keeping up with my collaborator. I added &quot; -r848&quot; (the version I was caught up, before he started making changes I want to review) to the M &amp; AM aliases, and I can now paste in a few lines from the &quot;svn update&quot; output to review changes one file at a time.

Note that the &quot;&lt;code&gt;--wait&lt;/code&gt;&quot; is necessary, as otherwise successive diffs overwrite the &lt;code&gt;.tmp&lt;/code&gt; file BBEdit compares against, and earlier comparisons break.</description>
		<content:encoded><![CDATA[<p>Some improved aliases for use with BBEdit:</p>
<p>alias A=&#8217;bbedit&#8217;<br />
alias AM=&#8217;svn diff &#8211;diff-cmd bbdiff &#8211;extensions &#8220;&#8211;resume &#8211;wait&#8221;&#8216;<br />
alias C=&#8217;bbedit&#8217;<br />
alias D=&#8217;true&#8217;<br />
alias G=&#8217;svn diff &#8211;diff-cmd bbdiff &#8211;extensions &#8220;&#8211;resume &#8211;wait&#8221;&#8216;<br />
alias I=&#8217;true&#8217;<br />
alias M=&#8217;svn diff &#8211;diff-cmd bbdiff &#8211;extensions &#8220;&#8211;resume &#8211;wait&#8221;&#8216;<br />
alias R=&#8217;svn diff &#8211;diff-cmd bbdiff &#8211;extensions &#8220;&#8211;resume &#8211;wait&#8221;&#8216;<br />
alias U=&#8217;bbedit&#8217;</p>
<p>This week I&#8217;m reviewing the total changes over about 50 revisions, when I wasn&#8217;t keeping up with my collaborator. I added &#8221; -r848&#8243; (the version I was caught up, before he started making changes I want to review) to the M &amp; AM aliases, and I can now paste in a few lines from the &#8220;svn update&#8221; output to review changes one file at a time.</p>
<p>Note that the &#8220;<code>--wait</code>&#8221; is necessary, as otherwise successive diffs overwrite the <code>.tmp</code> file BBEdit compares against, and earlier comparisons break.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: schwuk.com : Useful subversion bash functions</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-33499</link>
		<dc:creator>schwuk.com : Useful subversion bash functions</dc:creator>
		<pubDate>Tue, 17 Oct 2006 10:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-33499</guid>
		<description>[...] Inspired by bbum&#8217;s Useful subversion shell aliases I decided to to try them out for myself. Of course nothing is ever easy and they needed to be converted from aliases to functions to work under bash, as bash doesn&#8217;t support passing arguments according to Google. [...]</description>
		<content:encoded><![CDATA[<p>[...] Inspired by bbum&#8217;s Useful subversion shell aliases I decided to to try them out for myself. Of course nothing is ever easy and they needed to be converted from aliases to functions to work under bash, as bash doesn&#8217;t support passing arguments according to Google. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: onwalking.org &#187; Blog Archive &#187; links for 2006-06-28</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-9232</link>
		<dc:creator>onwalking.org &#187; Blog Archive &#187; links for 2006-06-28</dc:creator>
		<pubDate>Wed, 28 Jun 2006 13:13:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-9232</guid>
		<description>[...] bbum’s weblog-o-mat » Blog Archive » Useful subversion shell aliases a handful of aliases that, once plopped into your shells initialization scripts, make dealing with Subversion all that much more pleasant. (tags: Subversion svn terminal bash command line version control tool tips unix) [...]</description>
		<content:encoded><![CDATA[<p>[...] bbum’s weblog-o-mat » Blog Archive » Useful subversion shell aliases a handful of aliases that, once plopped into your shells initialization scripts, make dealing with Subversion all that much more pleasant. (tags: Subversion svn terminal bash command line version control tool tips unix) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Pepper</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-4723</link>
		<dc:creator>Chris Pepper</dc:creator>
		<pubDate>Tue, 23 May 2006 03:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-4723</guid>
		<description>Don&#039;t forget the official &lt;strong&gt;BBEdit&lt;/strong&gt; way to do this &lt;a href=&quot;http://www.barebones.com/support/bbedit/arch_bbedit81.shtml&quot;&gt;http://www.barebones.com/support/bbedit/arch_bbedit81.shtml&lt;/a&gt;. I added:

&lt;pre&gt;
[helpers]
editor = edit.sh
diff-cmd = bbdiff
extensions = --wait --resume
&lt;/pre&gt;

	to &lt;code&gt;~/.subversion/config&lt;/code&gt;, and can now &lt;code&gt;svn diff&lt;/code&gt; (with or without arguments) to get &lt;strong&gt;BBEdit&lt;/strong&gt; to DWIM.


	Additionally, I tweaked my profile and created a helper script for programs which reject arguments (spaces) in &lt;code&gt;EDITOR&lt;/code&gt;:

&lt;pre&gt;
pepper@pepperbook:~$ grep -C3 PAGER bin/profile.sh
  if [ -x ~/bin/edit.sh ]
  then
    export EDITOR=~/bin/edit.sh
    export PAGER=&quot;col -b &#124; bbedit --clean --view-top&quot;
  else export EDITOR=vi
  fi # [ -x ~/bin/edit.sh ]

pepper@pepperbook:~$ cat bin/edit.sh 
#!/bin/sh
# Edit a file in BBEdit (if available), for programs that don&#039;t support arguments in $EDITOR.
if [[ $SSH_TTY ]]
then # Remote
  vi &quot;$@&quot;
else # Local
  bbedit --wait --resume &quot;$@&quot;
fi
&lt;/pre&gt;

	Now &lt;code&gt;svn ci&lt;/code&gt;, &lt;code&gt;crontab&lt;/code&gt;, &lt;code&gt;man&lt;/code&gt;, etc. all use &lt;strong&gt;BBEdit&lt;/strong&gt; when available, or &lt;code&gt;vi&lt;/code&gt; when I&#039;m logged in through a text-only connection (&lt;code&gt;ssh&lt;/code&gt;).
	
&lt;b&gt;Edit:&lt;/b&gt; bbum moved some tags around to make it more readable in the context of my rather stupid CSS.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget the official <strong>BBEdit</strong> way to do this <a href="http://www.barebones.com/support/bbedit/arch_bbedit81.shtml">http://www.barebones.com/support/bbedit/arch_bbedit81.shtml</a>. I added:</p>
<pre>
[helpers]
editor = edit.sh
diff-cmd = bbdiff
extensions = --wait --resume
</pre>
<p>	to <code>~/.subversion/config</code>, and can now <code>svn diff</code> (with or without arguments) to get <strong>BBEdit</strong> to DWIM.</p>
<p>	Additionally, I tweaked my profile and created a helper script for programs which reject arguments (spaces) in <code>EDITOR</code>:</p>
<pre>
pepper@pepperbook:~$ grep -C3 PAGER bin/profile.sh
  if [ -x ~/bin/edit.sh ]
  then
    export EDITOR=~/bin/edit.sh
    export PAGER="col -b | bbedit --clean --view-top"
  else export EDITOR=vi
  fi # [ -x ~/bin/edit.sh ]

pepper@pepperbook:~$ cat bin/edit.sh
#!/bin/sh
# Edit a file in BBEdit (if available), for programs that don't support arguments in $EDITOR.
if [[ $SSH_TTY ]]
then # Remote
  vi "$@"
else # Local
  bbedit --wait --resume "$@"
fi
</pre>
<p>	Now <code>svn ci</code>, <code>crontab</code>, <code>man</code>, etc. all use <strong>BBEdit</strong> when available, or <code>vi</code> when I&#8217;m logged in through a text-only connection (<code>ssh</code>).</p>
<p><b>Edit:</b> bbum moved some tags around to make it more readable in the context of my rather stupid CSS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliott Hughes</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-3076</link>
		<dc:creator>Elliott Hughes</dc:creator>
		<pubDate>Mon, 15 May 2006 20:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-3076</guid>
		<description>&gt; A quick perusal reveals that the stuff shipped in the tarball linked to from that site is hardwired to paths that only exist on the developer’s machine.

that shouldn&#039;t be the case. plenty of other people are using it, on Linux, Mac OS, and Windows, and with BitKeeper, CVS, and Subversion. (i don&#039;t know of anyone seriously using the Bazaar back-end yet.)

could you report your problems to the email address in the README file, please? (or to the address i gave when entering this, which i assume you can see.)

we do have a *long* way to go to be a typical .app-in-a-.dmg Mac OS experience&#160;&#8212; it&#039;s not obvious how we&#039;d fit that model, and we hate .pkg packages to the extent that we never install them ourselves, so don&#039;t expect others to. but for anyone prepared and able to build from source and put the bin/ directory on their path, we should &quot;just work&quot;. if we don&#039;t, i&#039;d like to fix it.

(sorry for the delay; a user just pointed me at this. blog comments are such an impractical way to hold a conversation!)</description>
		<content:encoded><![CDATA[<p>&gt; A quick perusal reveals that the stuff shipped in the tarball linked to from that site is hardwired to paths that only exist on the developer’s machine.</p>
<p>that shouldn&#8217;t be the case. plenty of other people are using it, on Linux, Mac OS, and Windows, and with BitKeeper, CVS, and Subversion. (i don&#8217;t know of anyone seriously using the Bazaar back-end yet.)</p>
<p>could you report your problems to the email address in the README file, please? (or to the address i gave when entering this, which i assume you can see.)</p>
<p>we do have a *long* way to go to be a typical .app-in-a-.dmg Mac OS experience&nbsp;&mdash; it&#8217;s not obvious how we&#8217;d fit that model, and we hate .pkg packages to the extent that we never install them ourselves, so don&#8217;t expect others to. but for anyone prepared and able to build from source and put the bin/ directory on their path, we should &#8220;just work&#8221;. if we don&#8217;t, i&#8217;d like to fix it.</p>
<p>(sorry for the delay; a user just pointed me at this. blog comments are such an impractical way to hold a conversation!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bbum</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-2658</link>
		<dc:creator>bbum</dc:creator>
		<pubDate>Tue, 02 May 2006 17:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-2658</guid>
		<description>Except that SCM appears to be far from ready for prime time.  A quick perusal reveals that the stuff shipped in the tarball linked to from that site is hardwired to paths that only exist on the developer&#039;s machine.

Looks interesting.  Needs some cleanup before it is useful (to me).  I look forward to checking it out.</description>
		<content:encoded><![CDATA[<p>Except that SCM appears to be far from ready for prime time.  A quick perusal reveals that the stuff shipped in the tarball linked to from that site is hardwired to paths that only exist on the developer&#8217;s machine.</p>
<p>Looks interesting.  Needs some cleanup before it is useful (to me).  I look forward to checking it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliott Hughes</title>
		<link>http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/comment-page-1/#comment-2657</link>
		<dc:creator>Elliott Hughes</dc:creator>
		<pubDate>Tue, 02 May 2006 16:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.friday.com/bbum/2006/03/13/useful-subversion-shell-aliases/#comment-2657</guid>
		<description>I always knew we were doing a poor job of advertising &lt;a href=&quot;http://software.jessies.org/scm/&quot; rel=&quot;nofollow&quot;&gt;SCM&lt;/a&gt; (a GPL front-end to various revision control systems)! You&#039;ve prompted me to write &lt;a href=&quot;http://elliotth.blogspot.com/2006/05/why-you-should-use-jessiesorg-scm.html&quot; rel=&quot;nofollow&quot;&gt;Why you should use jessies.org SCM tools&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I always knew we were doing a poor job of advertising <a href="http://software.jessies.org/scm/" rel="nofollow">SCM</a> (a GPL front-end to various revision control systems)! You&#8217;ve prompted me to write <a href="http://elliotth.blogspot.com/2006/05/why-you-should-use-jessiesorg-scm.html" >Why you should use jessies.org SCM tools</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
