summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)Author
2009-08-30Merge branch 'master' of git://github.com/joeyh/ikiwikiAmitai Schlair
2009-08-25Remove now-unused function pagespec_mergeSimon McVittie
Now that dependencies are a list of pagespecs with an implicit "or" operation, there's no need to try to merge pagespecs under normal use. ikiwiki-transition contains the only use of the function, so move it there rather than deleting it entirely (it's used to concatenate all admins' lists of locked pages).
2009-08-25Use a hash to de-duplicate dependenciesSimon McVittie
2009-08-24Optimize the dependencies listSimon McVittie
On a large wiki you can spend a lot of time reading through large lists of dependencies to see whether files need to be rebuilt (album, with its one-page-per-photo arrangement, suffers particularly badly from this). The dependency list is currently a single pagespec, but it's not used like a normal pagespec - in practice, it's a list of pagespecs joined with the "or" operator. Accordingly, change it to be stored as a list of pagespecs. On a wiki with many tagged photo albums, this reduces the time to refresh after `touch tags/*.mdwn` from about 31 to 25 seconds. Getting the benefit of this change on an existing wiki requires a rebuild.
2009-08-13Add my CVS plugin and related patches.Amitai Schlair
2009-07-21use underlay_install as optimisatonJoey Hess
2009-07-19Merge branch 'master' into poJoey Hess
Conflicts: debian/changelog
2009-06-08Optimise use of gettext, and avoid ugly warnings if Locale::gettext is not ↵Joey Hess
available. The test suite was emitting a lot of ugly gettext warnings; setting LC_ALL didn't solve the problem for all locale setups (since ikiwiki remaps it to LANG, and ikiwiki didn't know about the C locale). People also seem generally annoyed by the messages when Locale::Gettext is not installed, and I suspect will be generally happier if it just silently doesn't localize. The optimisation came about when I noticed that the gettext sub was doing rather a lot of work each call just to see if localisation is needed. We can avoid that work by caching, and the best thing to cache is a version of the gettext sub that does exactly the right thing. This was slightly complicated by the locale setting, which might need to override the original locale (or lack thereof) after gettext has been called. So it needs to invalidate the cache in that case. It used to do it via a global variable, which I am happy to have also gotten rid of.
2009-06-06Merge commit 'upstream/master' into pub/pointrigeri
Conflicts: debian/changelog debian/control Signed-off-by: intrigeri <intrigeri@boum.org>
2009-06-05add test case for unterminated """ stringJoey Hess
A directive that contains an unterminated """ string should not cause each word of the string to be treated as a bare word. Instead, the directive should fail to parse. There are two tests. One just checks that a complete directive containing such a string fails to parse. The other checks for a case where a directive ends with a very long unterminated """ string, and the directive is itself not closed. While this test won't fail, it does trigger a nasty perl warning.
2009-05-25Fix test suite to not rely on an installed copy of ikiwiki after underlaydir ↵Joey Hess
change. Closes: #530502
2009-05-22stop using perl -T hereJoey Hess
See bug #411786. Perl's random corruption of the taint flag is even effecting the untainting of source filenames now (which AFAICS, is a proper untaint and always worked before..), and that makes using ikiwiki in perl taint mode not work at all.
2009-05-21add test case for multiline pagespecJoey Hess
2009-05-19Merge branch 'master' into poJoey Hess
Conflicts: debian/changelog
2009-05-18Allow curly braces to be used in pagespecsJoey Hess
And avoid a whole class of potential security problems (though none that I know of actually existing..), by avoiding performing any string interpolation on user-supplied data when translating pagespecs.
2009-04-20Merge commit 'upstream/master' into pub/pointrigeri
Conflicts: debian/changelog debian/control
2009-04-04Fix git test suite to use a bare repo.Joey Hess
This works around an enormous (and, in this context, enormously confusing) message that git has begun to print when one attempts to push changes into a non-bare repo. As a bonus, it now tests whether ikiwiki-makerepo works.
2009-03-08Merge commit 'upstream/master' into prv/pointrigeri
Conflicts: IkiWiki/Plugin/editpage.pm debian/control debian/copyright doc/todo/need_global_renamepage_hook.mdwn Signed-off-by: intrigeri <intrigeri@boum.org>
2009-02-19Add noextension parameter to htmlize hooks to support, eg, Makefile.Joey Hess
2009-02-19add keepextension testsJoey Hess
2009-02-19fix pagename, pagetype testsJoey Hess
Put tests in right file. Set internal variable to hash, the functions expect that.
2009-02-19fix pagetype testJoey Hess
File had wrong name, and made wrong assumption about what pagetype does for bare files.
2009-01-31rename apache404 -> 404Joey Hess
This may already work with other web servers that have copied apache's interface, and it should be easy to add support to it for web servers that use some other interface. So, make the name more general.
2009-01-31Split apache404 into an independent pluginSimon McVittie
Also make it ignore the 'do' parameter at Joey's suggestion, to have one less thing to remember when configuring.
2009-01-31CGI: add cgi_page_from_404(), which remaps a path like $REDIRECT_URL to an ↵Simon McVittie
IkiWiki page name Also add a regression test
2009-01-27revert renamepage's hook original nameintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-18Merge commit 'upstream/master' into prv/pointrigeri
Conflicts: t/syntax.t
2009-01-17load rpc xml lib on the flyJoey Hess
This way, enabling the plugin via websetup is safe, it can't leave ikiwiki in a broken state.
2009-01-17Merge commit 'upstream/master' into prv/pointrigeri
Conflicts: IkiWiki/Plugin/editpage.pm IkiWiki/Plugin/skeleton.pm.example doc/plugins/write.mdwn t/syntax.t
2009-01-16blogspam: New plugin, adding spam filtering for page editing / comment ↵Joey Hess
posting using the BlogSpam.net API.
2009-01-15po.t: fix test suiteintrigeri
(translatable files now have to exist in srcdir) ) Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-13Merge commit 'upstream/master' into prv/pointrigeri
2009-01-03yesno: Always accept English even when localised.Joey Hess
It seems to be a failing of i18n in unix that the translation stops at the commands and the parameters to them, and ikiwiki is no exception with its currently untranslated directives. So the little bit that's translated sticks out like a sore thumb. It also breaks building of wikis if a different locale happens to be set. I suppose the best thing to do is either give up on the localisation of this part completly, or make it recognise English in addition to the locale. I've tenatively chosen the latter. (Also accept 1 and 0 as input.)
2009-01-01Merge commit 'upstream/master' into prv/pointrigeri
2008-12-30renamed the renamepage hook to renamelink, added rename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-30po.t: adapted a few tests to match the current ikiwiki behaviourintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-30Merge commit 'upstream/master' into prv/pointrigeri
Conflicts: debian/control debian/copyright doc/ikiwiki/pagespec.mdwn Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-23remove globlist supportJoey Hess
No transition code implemented, but I will probably make a 2.x release that warns about found globlists.
2008-12-23fix to use prefix directivesJoey Hess
2008-12-23fix to use prefix directivesJoey Hess
2008-12-21avoid an uninitialized value warningJoey Hess
2008-12-21Merge commit 'smcv/openid'Joey Hess
2008-12-21add another testJoey Hess
2008-12-21Add a regression test for &openiduserSimon McVittie
2008-12-21beautify_urlpath: add a regression testSimon McVittie
2008-11-13po.t: cleanupintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po: fix istranslation/istranslatable for pages starting with /intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po: change a bit the way links are generatedintrigeri
This will soon enable usage of translated page titles in link. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po: fixed link to home page when po_link_to=negotiated, added testcaseintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po: fixed link to homepage from non-translation pageintrigeri
Added testcases for this bug. It remains broken when generated from <TMPL_VAR BASEURL>, though. Signed-off-by: intrigeri <intrigeri@boum.org>