summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBuild/tools/svnchangelog6
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/tools/svnchangelog b/Build/tools/svnchangelog
index e2bd67ca840..e655c4d5868 100755
--- a/Build/tools/svnchangelog
+++ b/Build/tools/svnchangelog
@@ -36,8 +36,10 @@ line=`grep '^r[0-9]* |' $newlogs | head -1 | sed 's/^r//'`
latestchange=`echo "$line" | awk '{print $1}'`
$debug && echo "latestchange=$latestchange"
-# nothing submitted since last change?
-test $latestchange -lt $nextneeded && exit 0
+# done if nothing submitted since last change.
+# or if only one commit has been made, because we ourselves do a commit,
+# so otherwise we'd add a useless entry every time we're run.
+test $latestchange -le $nextneeded && exit 0
# rotate logs if crossed a 1000-change mark.
rotate=false