summaryrefslogtreecommitdiffstats
path: root/scripts/svnchangesince
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbd9e6617827818fd043452c08c606f07b78014a0 (patch)
tree425bb4c3168f9c02f10150f235d2cb998dcc6108 /scripts/svnchangesince
downloadtdesdk-bd9e6617827818fd043452c08c606f07b78014a0.tar.gz
tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'scripts/svnchangesince')
-rwxr-xr-xscripts/svnchangesince63
1 files changed, 63 insertions, 0 deletions
diff --git a/scripts/svnchangesince b/scripts/svnchangesince
new file mode 100755
index 00000000..eec267e5
--- /dev/null
+++ b/scripts/svnchangesince
@@ -0,0 +1,63 @@
+#!/bin/sh
+#
+# Written by Thiago Macieira <thiago@kde.org>
+# This file is in the public domain.
+#
+# Shows the changes to the subversion repository since the local copy
+# was last updated.
+#
+
+showdiff=false
+showlog=true
+
+while test $# -ge 1; do
+ case "$1" in
+ -d)
+ showdiff=true
+ shift
+ ;;
+
+ -D)
+ showdiff=false
+ shift
+ ;;
+
+ -l)
+ showlog=true
+ shift
+ ;;
+
+ -L)
+ showlog=false
+ shift
+ ;;
+
+ -h)
+ cat <<EOF
+svnchangesince - Shows the changes to the SVN repository since the last update
+Usage:
+ svnchangesince [-d|-D] [-l|-L] [-h] [filenames]
+
+where:
+ -d include diffs in output
+ -D don't include diffs in output [default]
+ -l include logs in output [default]
+ -L don't include logs in output
+ -h show this help string
+EOF
+ exit 0
+ ;;
+
+ *)
+ break
+ ;;
+ esac
+done
+
+if $showlog; then
+ svn log -v -r HEAD:BASE "$@"
+fi
+
+if $showdiff; then
+ svn diff -r BASE:HEAD "$@"
+fi