[debian-edu-commits] debian-edu/ 06/09: Improve commit message on updates.
Alexander Alemayhu
alexander at bitraf.no
Thu Aug 7 07:19:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
ccscanf-guest pushed a commit to annotated tag 0.412.0.edu.etch.1+svn35006
in repository debian-edu-config.
commit b5ef5e649ef2e0fefcd9aa8a9306c5e2f2bfc55f
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Sat Jun 23 22:35:16 2007 +0000
Improve commit message on updates.
---
sbin/debian-edu-etc-svk | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/sbin/debian-edu-etc-svk b/sbin/debian-edu-etc-svk
index fa93dfd..b3557d7 100755
--- a/sbin/debian-edu-etc-svk
+++ b/sbin/debian-edu-etc-svk
@@ -53,12 +53,22 @@ do_init() {
do_update() {
cd $subdir
if [ "$(svk status)" ] ; then
+ comment=""
delfiles="$(svk status|grep '^! '|awk '{print $2}')"
- [ "$delfiles" ] && svk rm $delfiles > /dev/null
+ if [ "$delfiles" ] ; then
+ svk rm $delfiles > /dev/null
+ comment="Removed $delfiles. $comment"
+ fi
newfiles="$(svk status|grep '^? '|awk '{print $2}')"
- [ "$newfiles" ] && svk add $newfiles > /dev/null
+ if [ "$newfiles" ] ; then
+ svk add $newfiles > /dev/null
+ comment="Added $newfiles. $comment"
+ fi
modfiles="$(svk status|grep '^M '|awk '{print $2}')"
- svk commit -m "Recent changes." > /dev/null
+ if [ "$modfiles" ] ; then
+ comment="Modified $modfiles. $comment"
+ fi
+ svk commit -m "$comment" > /dev/null
fi
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list