svn commit: r481824 - head/Tools/scripts

Rene Ladan rene at FreeBSD.org
Thu Oct 11 13:40:42 UTC 2018


Author: rene
Date: Thu Oct 11 13:40:41 2018
New Revision: 481824
URL: https://svnweb.freebsd.org/changeset/ports/481824

Log:
  rmport: if the user edited the commit message, ask again afterwards.
  
  This is in line with asking for recreating the diffs and "fixes" the workflow.

Modified:
  head/Tools/scripts/rmport

Modified: head/Tools/scripts/rmport
==============================================================================
--- head/Tools/scripts/rmport	Thu Oct 11 13:40:25 2018	(r481823)
+++ head/Tools/scripts/rmport	Thu Oct 11 13:40:41 2018	(r481824)
@@ -405,10 +405,13 @@ commit()
 	log "Your commit message is:"
 	cat svnlog
 
-	answer=`ask "Do you want to edit again your commit message?"`
-	if [ "${answer}" = "y" ] ; then
-		$EDITOR svnlog
-	fi
+	answer=y
+	while [ "${answer}" = "y" ] ; do
+		answer=`ask "Do you want to edit your commit message again?"`
+		if [ "${answer}" = "y" ] ; then
+			$EDITOR svnlog
+		fi
+	done
 
 	answer=`ask "Do you want to commit now?"`
 


More information about the svn-ports-all mailing list