autoindex: stop tracking deletions, use generic autofile tracking instead
authorSimon McVittie <smcv@debian.org>
Sat, 22 Jan 2011 22:28:50 +0000 (22:28 +0000)
committerSimon McVittie <smcv@debian.org>
Sat, 22 Jan 2011 22:28:50 +0000 (22:28 +0000)
commit8ee9eabb1c5314f51641aaec4cb45d5c2d0fa7b8
tree681353784d16bb20cc658ea98d81b7de63643185
parentdb029393f61b358576d21536554ddabcffaef90c
autoindex: stop tracking deletions, use generic autofile tracking instead

- Migrate the set of deletions to the {autofile} set, since it has
  more or less the same effect. This affects the "deleted" case in the
  test.
- If a page has just been deleted, add it as an autofile anyway: by
  the time gen_autofile is called, it'll be in the list of deleted files,
  so it'll just be added to {autofile}. This affects the "gone" case
  in the test.
- Behaviour change: we don't forget that a page with no reason to be
  re-created was deleted. This affects the 'expunged' and 'reinstated'
  cases in the test.
IkiWiki/Plugin/autoindex.pm
t/autoindex.t