[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: swd - SVN word diff (wdiff)

From: Chris Pickett <chris.pickett_at_mail.mcgill.ca>
Date: Sun, 29 Nov 2009 20:58:15 -0500

I'm re-CC'ing the lists since there's a couple interesting points here.

Daniel Shahaf wrote:
> Shows that I didn't read your tar file before posting...

Well, expecting people to download something may be unreasonable. I
extracted it here:

http://www.sable.mcgill.ca/~cpicke/swd/

(I need to bug my sysadmin to expose the repository dir.)

>> Yes, except getting 'svn wdiff' recognized probably requires wrapping
>> svn itself. (I didn't think of this, so thanks!)
>
> Some sort of generic wrapper, perhaps?

Hmm, good idea, I updated things.

> #!/bin/sh
> svn=/usr/bin/svn

I made this portable with `which svn` and saving/editing/restoring PATH.
  A similar wdiff wrapper that accepted colour and context options would
be neat.

> if $svn help | grep " .*$1" > /dev/null; then

This call to svn doubles the running time for simple invocations, a fix
would cache the output somehow.

Chris

> $svn "$@"
> else
> ${svn}-"$@"
> fi
>
> Daniel

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2425318

Please start new threads on the <dev_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <dev-subscribe_at_subversion.apache.org>.
Received on 2009-11-30 02:58:42 CET

This is an archived mail posted to the Subversion Dev mailing list.