Public bug reported:

Hope this is at the right place.
I use the nautilus scripts and they're very convenient. But because I use in 
the commit logmessages multiple lines, I can't use it for commit.
Today I tried to fix this and used a temporary file to do this (Diff below):
--------------------------------------------------------------------------------------------------------
--- Commit.old  2005-10-01 12:20:02.000000000 +0200
+++ Commit.new  2007-01-23 20:40:40.000000000 +0100
@@ -4,14 +4,19 @@
 #
 # http://marius.scurtescu.com/?p=102
 # http://gnomefiles.org/app.php?soft_id=1059
+# Multiple lines in commit-message added by Michael Weibel <[EMAIL PROTECTED]>
 
 LOGFILE=`mktemp -t svn_commit.XXXXXX`
+LOGMESSAGEFILE=`mktemp -t svn_log.XXXXXX`
 
 ICONPATH="`dirname $0`/svn.xpm"
-LOGMESSAGE=`zenity --entry --title="Subversion: Commit" --text="Enter log 
message:" --width=400 --window-icon="$ICONPATH" 2>&1`
+
+zenity --text-info --title "Subversion: Commit" --width=400 --height=400 
--editable --window-icon="$ICONPATH" > $LOGMESSAGEFILE
+
+LOGMESSAGE=`cat $LOGMESSAGEFILE`
 
 if [ $? -eq 0 ] ; then
     svn commit -m "$LOGMESSAGE" "$@" > $LOGFILE
     zenity --text-info --title="Subversion: Commit" --filename=$LOGFILE 
--width=600 --height=400 --window-icon="`dirname $0`/svn.xpm"
-    rm -f $LOGFILE
+    rm -f $LOGFILE $LOGMESSAGEFILE
 fi
--------------------------------------------------------------------------------------------------------

Hope you can use it.

-Michael

** Affects: nautilus-svn-scripts (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Enhancement for commit - possibility to use multiple lines in logmessage
https://launchpad.net/bugs/81152

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to