Joey Hess
f5da8d3aed
more tests with more items
2010-04-12 15:16:57 -04:00
Joey Hess
0bfc364a7d
optimization: pagespec_match_list with no num limit matches before sorting
...
This can be a lot faster, since huge numbers of pages are not sorted
only to mostly be thrown away. It sped up a build of my blog by at least
5 minutes.
2010-04-11 01:30:03 -04:00
Simon McVittie
cb8b2f80b2
Use $a and $b for SortSpec cmp callbacks
2010-04-05 22:50:51 +01:00
Simon McVittie
04a59b3c65
Move sort hooks to the IkiWiki::SortSpec namespace
...
Also rename cmpspec_translate (internal function) to sortspec_translate
for consistency.
2010-04-03 14:28:21 +01:00
Simon McVittie
b86276ffed
Reimplement extensible sorting mechanisms, in the same way as pagespecs
2010-03-25 23:31:53 +00:00
Simon McVittie
60edd2dc31
Allow sorting to be combined and/or reversed
2010-03-24 23:51:48 +00:00
Simon McVittie
e67a9382f6
Allow hooks to add sorting functions to pagespec_match_list
2010-03-24 00:29:10 +00:00
Joey Hess
2f5beb59bf
tests for influence blocking
2009-10-13 14:46:38 -04:00
Joey Hess
139085b3f2
add some TODO tests for influence blocking
2009-10-11 23:53:21 -04:00
Joey Hess
9eb229bfc7
move influence tests to pagespec_match_list.t
2009-10-09 14:05:22 -04:00
Joey Hess
5e7b2dea84
rename use_pagespec to pagespec_match_list
...
To avoid breaking plugins, also support the old pagespec_match_list
calling convention, with a deprecation warning.
2009-10-08 23:51:06 -04:00