Nice Scripts.

I changed the Commit. You can now choose which File you want to commit

#!/bin/sh
#
# Distributed under the terms of GNU GPL version 2
#
# http://marius.scurtescu.com/?p=102
# http://gnomefiles.org/app.php?soft_id=1059
choosedialog(){
FILES=`zenity --list --text "Choose file to commit" \
    --title="Subversion: Commit" \
    --checklist \
    --column="Choose" \
    --column="File" \
    --column="Changed" \
    --separator=" " \
    --print-column=1 \
    $(svn status "$@" | awk '{if ($1 ~ /^[AMD]/) {print "TRUE " $NF " " $1}}') 2>&1` 
}
 
choosedialog "$@"
a=x$FILES
if [ "$a" = "x" ]
then
    exit 1
fi
 
LOGFILE=`mktemp -t svn_commit.XXXXXX`
 
ICONPATH="`dirname $0`/svn.xpm"
LOGMESSAGE=`zenity --entry --title="Subversion: Commit Messge" --text="Enter log message:" --width=400 --window-icon="$ICONPATH" 2>&1`
 
if [ $? -eq 0 ] ; then
    svn commit -m "$LOGMESSAGE" $FILES > $LOGFILE
    zenity --text-info --title="Subversion: Commit" --filename=$LOGFILE --width=600 --height=400 --window-icon="`dirname $0`/svn.xpm"
    rm -f $LOGFILE
fi

Reply

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options