Re: swd - SVN word diff (wdiff)

Chris Pickett <[email protected]> Sun, 29 Nov 2009 20:58:15 -0500
Newsgroups gmane.comp.version-control.subversion.devel,gmane.comp.version-control.subversion.rapidsvn.devel
Message-ID <[email protected]>
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 <[email protected]> mailing list.
To subscribe to the new list, send an empty e-mail to <[email protected]>.