changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Merge bugfix for dirdir from werc-dev repo.

changeset 591: bab2628879e5
parent 588: 96e762bcde7e
parent 590: 8714494f9d73
child 592: 0202b270605e
author: uriel@vm41.cat-v.org
date: Wed, 23 Sep 2009 12:31:52 +0200
files:
description: Merge bugfix for dirdir from werc-dev repo.
     1.1--- a/apps/dirdir/app.rc	Thu Sep 17 21:13:51 2009 +0200
     1.2+++ b/apps/dirdir/app.rc	Wed Sep 23 12:31:52 2009 +0200
     1.3@@ -6,7 +6,12 @@
     1.4 
     1.5 fn dirdir_init {
     1.6     if(! ~ $#enable_wiki 0 && check_user $wiki_editors_groups) {
     1.7-        dirdir_file=$local_path.md
     1.8+        lp=$local_path
     1.9+        # werc.rc doesn't append /index when $local_path doesn't exit
    1.10+        # maybe it should, but for now we can fix it up here.
    1.11+        if(~ $lp */) 
    1.12+            lp=$lp^'index'
    1.13+        dirdir_file=$lp.md
    1.14         dirdir_dir=$dirdir_file^'_werc/dirdir/'
    1.15  
    1.16         if(~ 1 $#post_arg_dirdir_edit $#post_arg_dirdir_preview)