This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: svn diff branch woprking copy against mainline?


> But I'd rather do:
> svn diff Makefile.in -rgcc_4_1_1_release
>
> I.e. no silly naming of the path from the trunk root to the file, and no
> repetition of the file name itself.

$ cat `which difftag`
#! /bin/sh
if echo "$1" | grep '-branch$' > /dev/null ; then
  subdir=branches
else
  subdir=tags
fi
oldurl=`svn info . | grep URL | awk '{print $2}' | \
	sed "s,\(/trunk\|/branches/[^/]*\),/$subdir/$1,"`
shift
svn diff --old=$oldurl --new=. "$@"

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]