changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Be smarter about when to enable comments, and make it configurable.

changeset 371: d961d29e9201
parent 370: bba0f2fda217
child 372: d88136ca3cb9
child 384: 2cd1b00be578
author: uriel@engel.se.cat-v.org
date: Mon, 26 Jan 2009 06:12:45 +0100
files: apps/bridge/app.rc
description: Be smarter about when to enable comments, and make it configurable.
     1.1--- a/apps/bridge/app.rc	Mon Jan 26 04:56:05 2009 +0100
     1.2+++ b/apps/bridge/app.rc	Mon Jan 26 06:12:45 2009 +0100
     1.3@@ -1,5 +1,6 @@
     1.4+comment_file_types=(md html)
     1.5 fn bridge_init {
     1.6-    if(! ~ $#enable_comments 0 && test -f $local_path.md) {
     1.7+    if(! ~ $#enable_comments 0 && ! ~ `{ls $local_path.$comment_file_types >[2]/dev/null|wc -l} 0) {
     1.8         ll_add handlers_body_foot template apps/bridge/foot.tpl
     1.9         if(get_post_args comment_text) {
    1.10             d=`{date -n} # FIXME Obvious race