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

Re: svn diff command

From: Stephane Bortzmeyer <bortzmeyer_at_nic.fr>
Date: 2005-04-15 11:36:22 CEST

On Fri, Apr 15, 2005 at 11:18:45AM +0200,
 Stephane Bortzmeyer <bortzmeyer@nic.fr> wrote
 a message of 19 lines which said:

> > Is there an interface, or GUI possible , in order to present the
> > result in 2 panels.
>
> --diff-cmd

A more detailed example:

svn diff -r115:121 --diff-cmd mydiff create.sql

With 'mydiff' being the following shell script that call the excellent
tool xxdiff (but you could use mgdiff or good old xdiff).

#!/bin/sh

ARGS=`getopt --name mydiff --options "+uL:" -- "$@"`

eval set -- "$ARGS"

while true ; do
        case "$1" in
                -u) shift ;; # Ignore
                -L) if [ "$title1" = "" ]; then
                       title1="$2";
                    else
                       title2="$2";
                    fi;
                     shift 2 ;;
                --) shift ; break ;;
                *) echo "Internal error!" ; exit 1 ;;
        esac
done

file1=$1
file2=$2

command="xxdiff --title1 \"$title1\" --title2 \"$title2\" $file1 $file2"
eval $command

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 15 11:38:22 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.