Aladdin - Scala Bugtracking
[#1117] project: distribution priority: low category: bug
submitter assigned to status date submitted
Nikolay _ open 2007-05-20 15:24:50.0
subject [contrib #484] Reject commits with no log message
code
As one of the committers to the Subversion project itself, I noticed
that revision 11085 has no log message:

$ svn log -r 11085 http://lampsvn.epfl.ch/svn-repos/scala
------------------------------------------------------------------------
r11085 | spoon | 2007-05-18 01:01:47 -0700 (Fri, 18 May 2007) | 1 line


------------------------------------------------------------------------


Please consider enabling the feature in Subversion's pre-commit
script to reject commits without a log message, as having
no log message is considered bad practice.

Something like this works nicely in the pre-commit.

# Make sure that the log message contains some text.
SVNLOOK=/usr/local/bin/svnlook
$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" > /dev/null || {
  echo "$0: no log message for txn $TXN" 1>&2
  exit 1
}

Regards,
Blair
what happened
what expected
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-05-20 15:32:08.0
I forwarded the message to scala-devel and Fabien. Since the actual fix will be from Fabien and he is not in the BTS I didn't assign it anybody.