summaryrefslogtreecommitdiffstats
path: root/scripts/svnchangesince
diff options
context:
space:
mode:
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