summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)Author
2010-04-03Move sort hooks to the IkiWiki::SortSpec namespaceSimon McVittie
Also rename cmpspec_translate (internal function) to sortspec_translate for consistency.
2010-03-26Fix incorrect influence info returned by a failing link() pagespec, that ↵Joey Hess
could lead to bad dependency handling in certian situations.
2010-03-25Reimplement extensible sorting mechanisms, in the same way as pagespecsSimon McVittie
2010-03-24Allow sorting to be combined and/or reversedSimon McVittie
2010-03-24Allow hooks to add sorting functions to pagespec_match_listSimon McVittie
2010-03-14updateJoey Hess
2010-03-13Improve openid url munging; do not display anchors and cgi parameters, as ↵Joey Hess
used by yahoo and google urls.
2010-02-26Loosen regexp, to allow empty quoted parameters in directives.Joey Hess
2010-02-11add some openid matching testsJoey Hess
2010-02-11Allow globs to be used in user() pagespecs.Joey Hess
2009-11-30fix test suite after bestlink changeJoey Hess
2009-10-15override LC_ALL, not LANGJoey Hess
2009-10-14build wiki in C locale, to ensure that the "no broken links" message is not ↵Joey Hess
translated
2009-10-14abort test if cvs prereq perl modules are not availableJoey Hess
2009-10-13fix some broken influence blocking testing, add more testsJoey Hess
2009-10-13tests for influence blockingJoey Hess
2009-10-11add some TODO tests for influence blockingJoey Hess
2009-10-11influences returns hash ref nowJoey Hess
2009-10-11typoJoey Hess
2009-10-11typoJoey Hess
2009-10-09updateJoey Hess
2009-10-09added tests of SuccessReason/FailReason objectsJoey Hess
2009-10-09move influence tests to pagespec_match_list.tJoey Hess
2009-10-09conditional: use yesnoJoey Hess
2009-10-09fix test to use new calling conventionJoey Hess
This test still fails several cases, since add_depends influence testing is currently commented out.
2009-10-08rename use_pagespec to pagespec_match_listJoey Hess
To avoid breaking plugins, also support the old pagespec_match_list calling convention, with a deprecation warning.
2009-10-08fix test broken by change to failing link() influenceJoey Hess
2009-10-08use_pagespec: do not fail with error when unable to match, unless it failsJoey Hess
with an ErrorReason
2009-10-08add use_pagespec and deptype functionsJoey Hess
2009-10-07add type info to influence informationJoey Hess
2009-10-07convert add_depends to use influencesJoey Hess
No more horrible special-case pagespec parsing. OTOH, matching over all pages to determine influences is a lot of work.
2009-10-07more influences testsJoey Hess
2009-10-07add influence info to match_*Joey Hess
Also update docs, test suite.
2009-10-07make success and failreason objects carry an influences hashJoey Hess
The hash will be used used to record a set of pages that influenced the result of a pagespec match. The influences are merged together when boolean and/or are encountered in a pagespec. That means using a non-short-circuiting OR operator. And so I use & and | when translating pagespecs, since those bitwise operators can be overloaded. ("and" and "or" cannot, apparently).
2009-10-06add_depends should default to content dependencies if unknown type specifiedJoey Hess
2009-10-06update to test backlinks() pagespecsJoey Hess
2009-10-04add test suite for add_dependsJoey Hess
and found a bug in my bitmath..
2009-09-13fix CVS prune testJoey Hess
The regexp only matches things inside the CVS directory, not just "CVS" by itself. I changed the test to not test that it will be pruned.
2009-09-10skip if cvsps is not availableJoey Hess
2009-09-10CVS operations generally need to be within CVS checkouts, so these chdir()Amitai Schlair
calls are warranted. They shouldn't modify the caller's working directory, though. Use File::chdir to keep the scope of the changes subroutine-local. The tests now pass without resetting the working directory.
2009-09-09Add automated tests, modeled after svn's. Note the chdir() calls;Amitai Schlair
perhaps cvs.pm should be doing pushd/popd in case the caller expects its working directory to be left alone.
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>