diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-01-25 11:13:52 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-01-25 11:13:52 +0000 |
commit | 6630381edceff867484c42f55ea2234c61515cae (patch) | |
tree | 5df2cbaa12770c51058ad92280a68217d31de601 /doc/bugs | |
parent | 4437c3cd1b0ca4f605aba21192694de91a48916c (diff) | |
download | ikiwiki-6630381edceff867484c42f55ea2234c61515cae.tar ikiwiki-6630381edceff867484c42f55ea2234c61515cae.tar.gz |
web commit by http://getopenid.com/ptecza: Response
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn b/doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn index 3d59c7fb8..ae0f5fe5a 100644 --- a/doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn +++ b/doc/bugs/Problem_with_editing_page_after_first_SVN_commit.mdwn @@ -145,4 +145,48 @@ My problem was caused by not having a revision system defined, so it defaulted t As for your .setup file you can put it anywhere. I don't think the CGI knows where it is at because its settings are set in the "wrapper". In my case, my setup file is in a different home and owned by a different user than the CGI or my generated website. By the way, I also don't keep my .ikiwiki private directory in my source directory by setting wikistatedir (which doesn't seem to be documented). ---[[JeremyReed]]
\ No newline at end of file +--[[JeremyReed]] + +> Never mind about indentation, Jeremy! :) Thanks a lot you're interested in +> my problem and you try to help me. + +> I use RCS backend and store my ikiwiki sources in SVN repo. Here is my SVN +> related settings: +> +> rcs => "svn", +> svnrepo => "/var/lib/svn/ikiwiki", +> svnpath => "trunk/pages", +> +> I've noticed the following piece of code in `/usr/share/perl5/IkiWiki/CGI.pm` +> file (`cgi_editpage()` subroutine): +> +> # save page +> page_locked($page, $session); +> +> my $content=$form->field('editcontent'); +> +> $content=~s/\r\n/\n/g; +> $content=~s/\r/\n/g; +> writefile($file, $config{srcdir}, $content); +> +> if ($config{rcs}) { +> # Here is RCS stuff +> # ... +> } +> else { +> require IkiWiki::Render; +> refresh(); +> saveindex(); +> } +> +> # The trailing question mark tries to avoid broken +> # caches and get the most recent version of the page. +> redirect($q, "$config{url}/".htmlpage($page)."?updated"); +> +> As you can see ikiwiki calls `saveindex()` subroutine if `rcs` variable +> is not defined. I don't understand it, because in this way ikiwiki +> doesn't update my `.ikiwiki/index` file. Joey, could you please +> enlight me here ;) +> +> BTW, I also noticed `wikistatedir` variable in the ikiwiki code +> and I couldn't find any information about it in ikiwiki docs :) --Pawel
\ No newline at end of file |