Changeset: f34be2082de4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f34be2082de4
Modified Files:
        buildtools/conf/Maddlog
Branch: Jun2010
Log Message:

Change default behavior of Maddlog.

By default, don't commit, but remind people that they have to commit.
Also remind people that the have to push.


diffs (47 lines):

diff -r 8b0a5fc397e4 -r f34be2082de4 buildtools/conf/Maddlog
--- a/buildtools/conf/Maddlog   Tue Jul 06 17:17:16 2010 +0200
+++ b/buildtools/conf/Maddlog   Tue Jul 06 17:36:13 2010 +0200
@@ -28,7 +28,7 @@
        exit -1
 fi
 
-nocommit=
+nocommit=true
 while [ $# -gt 0 ]; do
     case "$1" in
     --logfile=*)
@@ -44,8 +44,8 @@
        CL=${1#-f}
        shift
        ;;
-    --nocommit)
-       nocommit=true
+    --commit)
+       nocommit=
        shift
        ;;
     --)
@@ -57,7 +57,7 @@
        $0: unknown option $1
        Valid options are:
        --logfile=filename (-f filename)
-       --nocommit
+       --commit
        EOF
        exit 1
        ;;
@@ -135,7 +135,12 @@
 
 mv $file "$CL"
 
+hg add "$CL" >& /dev/null
+
 if [ ! "$nocommit" ]; then
-    hg add "$CL" >& /dev/null
-       hg commit -m "  $msg" "$CL"
+    hg commit -m "  $msg" "$CL"
+else
+    hg diff "$CL"
+    echo "Don't forget to COMMIT."
 fi
+echo "Don't forget to PUSH."
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to