| Commit message (Expand) | Author | Age |
* | rework dependency types code•••Simplify, change default content depends number to 1,
change interface to make more sense.
| Joey Hess | 2009-10-04 |
* | set dependency hash value properly for new dependency types•••Just "1" won't cut it anymore; we need to list all the dependency types.
| Joey Hess | 2009-10-03 |
* | Remove now-unused function pagespec_merge•••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).
| Simon McVittie | 2009-08-25 |
* | Use a hash to de-duplicate dependencies | Simon McVittie | 2009-08-25 |
* | Optimize the dependencies list•••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.
| Simon McVittie | 2009-08-24 |
* | ikiwiki-transition: deduplinks was broken and threw away all metadata stored ... | Joey Hess | 2009-05-22 |
* | fix | Joey Hess | 2009-05-22 |
* | ikiwiki-transition: Allow setup files to be passed to all subcommands that ne... | Joey Hess | 2009-05-20 |
* | ikiwiki-transition: If passed a nonexistant srcdir, or one not containing .ik... | Joey Hess | 2009-05-06 |
* | Avoid %links accumulating duplicates. (For TOVA)•••This is sorta an optimisation, and sorta a bug fix. In one
test case I have available, it can speed a page build up from 3
minutes to 3 seconds.
The root of the problem is that $links{$page} contains arrays of
links, rather than hashes of links. And when a link is found,
it is just pushed onto the array, without checking for dups.
Now, the array is emptied before scanning a page, so there
should not be a lot of opportunity for lots of duplicate links
to pile up in it. But, in some cases, they can, and if there
are hundreds of duplicate links in the array, then scanning it
for matching links, as match_link and some other code does,
becomes much more expensive than it needs to be.
Perhaps the real right fix would be to change the data structure
to a hash. But, the list of links is never accessed like that,
you always want to iterate through it.
I also looked at deduping the list in saveindex, but that does
a lot of unnecessary work, and doesn't completly solve the problem.
So, finally, I decided to add an add_link function that handles deduping,
and make ikiwiki-transition remove the old dup links.
| Joey Hess | 2009-05-06 |
* | fix moveprefs transition | Joey Hess | 2008-12-31 |
* | make ikiwiki-transition prefix_directives take a setup file•••This is easier to remeber, and less error-prone than passing it all the
pages in the wiki.
| Joey Hess | 2008-12-24 |
* | remove deprecated admin prefs•••A new ikiwiki-transition moveprefs subcommand can pull the old data out of
the userdb and inject it into the setup file.
Note that it leaves the old values behind in the userdb too. I did this
because I didn't want to lose data if it fails writing the setup file for
some reason, and the old data in the userdb will only use a small amount of
space. Running the command multiple times will mostly not change anything.
| Joey Hess | 2008-12-24 |
* | enable aggregate_internal by default | Joey Hess | 2008-12-23 |
* | add a guard against multiple cgi or rcs wrappers | Joey Hess | 2008-08-05 |
* | add ikiwiki-transition setupformat subcommand.•••Also fixed a bug in how aggregateinternal used IkiWiki::Setup::load,
and added checks for arguments to other subcommands.
| Joey Hess | 2008-08-05 |
* | Fix aggregateinternal migration so it skips expired entries, and deletes output | Simon McVittie | 2008-07-15 |
* | Add aggregateinternal mode to ikiwiki-transition.•••Usage:
1. Update all pagespecs that use aggregated pages to use internal()
2. ikiwiki-transition aggregateinternal $srcdir $htmlext
(where $srcdir and $htmlext are the srcdir and htmlext options in
your .setup file)
3. Add aggregateinternal to your .setup file
4. Rebuild the wiki
| Simon McVittie | 2008-07-14 |
* | ikiwiki-transition: Fix command-line processing so the prefix_directives tran... | Josh Triplett | 2008-07-09 |
* | hashed password support, and empty password security fix•••This implements the previously documented hashed password support.
While implementing that, I noticed a security hole, which this commit
also fixes..
| Joey Hess | 2008-05-30 |
* | fix transitioning of page state | Joey Hess | 2008-03-21 |
* | add transition code for indexdb | Joey Hess | 2008-03-21 |
* | rename ikiwiki-prefix-directives into ikiwiki-transition•••If we have transitions of this sort in the future, this program will
hopefully be used to handle them too.
| Joey Hess | 2008-01-30 |