Re: subversion gui for linux
From: Raman Gupta <rocketraman_at_fastmail.fm>
Date: 2006-05-03 02:48:12 CEST
David Everly wrote:
The attached shell script replaces "svn diff" and should do it for you.
export DIFFCMD=meld
Then run svntreediff instead of "svn diff" -- svntreediff supports all
svntreediff $REPO/tags/tag1 $REPO/tags/tag2
It will write #old and #new directories to your $TEMP (or /tmp) and then
Cheers,
#!/bin/sh
# Default TEMP dir
OLD="$TEMP/#old"
rm -fr "$OLD" "$NEW"
# Default diff command if it has not been specified by the user
# Change to windows-style paths if necessary
"$DIFFCMD" "$OLD" "$NEW"
#!/bin/sh
if [ "$3" = "" -o "$5" = "" -o "$6" = "" -o "$7" = "" ]; then
# Default TEMP dir
#echo "3 = $3"
# Strip the rev numbers
#echo "OLDFILEPATH = $OLDFILEPATH"
# Get the dir from the files
#echo "OLDDIR = $OLDDIR"
mkdir -p "$OLDDIR"
# Get the filename and concat with the dir
#echo "OLD = $OLD"
SIZEOFOLD=`ls -l "$6" | awk '{ print $5 }'`
# copy the tmp files created by svn to the values from above if they are not 0 size
if [ $SIZEOFNEW -ne 0 ]; then
---------------------------------------------------------------------
|
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.