ikiwiki.git
11 years agouse_pagespec: do not fail with error when unable to match, unless it fails
Joey Hess [Thu, 8 Oct 2009 22:47:48 +0000 (18:47 -0400)] 
use_pagespec: do not fail with error when unable to match, unless it fails
with an ErrorReason

11 years agopagecount: switched to use_pagespec
Joey Hess [Thu, 8 Oct 2009 22:41:08 +0000 (18:41 -0400)] 
pagecount: switched to use_pagespec

11 years agoinline: switch to use_pagespec
Joey Hess [Thu, 8 Oct 2009 22:26:36 +0000 (18:26 -0400)] 
inline: switch to use_pagespec

Taking advantage of every single one of its features, of course.
Even had to add one more..

11 years agoadd sorting page
Joey Hess [Thu, 8 Oct 2009 22:17:36 +0000 (18:17 -0400)] 
add sorting page

11 years agomap: switch to use_pagespec
Joey Hess [Thu, 8 Oct 2009 21:52:20 +0000 (17:52 -0400)] 
map: switch to use_pagespec

11 years agoadd use_pagespec and deptype functions
Joey Hess [Thu, 8 Oct 2009 20:49:53 +0000 (16:49 -0400)] 
add use_pagespec and deptype functions

11 years agochange how dependency types are specified to add_depends
Joey Hess [Thu, 8 Oct 2009 20:49:03 +0000 (16:49 -0400)] 
change how dependency types are specified to add_depends

Also, this fixes 2 bugs in dependency info.

11 years agofix handling of influences of pagespecs that fail to match
Joey Hess [Thu, 8 Oct 2009 17:38:46 +0000 (13:38 -0400)] 
fix handling of influences of pagespecs that fail to match

If a pagespec fails to match, I had been throwing the influences away, but
that is not right. Consider `backlink(foo)`, where foo does not exist.
It still needs to be added as an influence, because if it is created, it
will influence the pagespec to match.

But with that fix, `link(bar)` had as influences all pages, whether they
link to bar or not. Which is not necessary, because modifiying a page to
add a link to bar will directly cause the pagespec to match.

So, in match_link (and all the match_* functions for page metadata),
only return an influence if the match succeeds.

match_backlink had been implemented as the inverse of match_link, but that
is no longer completly true. While match_link does not return an influence
on failure, match_backlink does.

match_created_before/after also return the influence on failure, this way
if created_after(foo) currently fails because foo does not exist, it will
still update the page with the pagespec if foo is created.

11 years agobugfix
Joey Hess [Thu, 8 Oct 2009 02:08:19 +0000 (22:08 -0400)] 
bugfix

11 years agoremove explicit addition of dependencies for displayed pages
Joey Hess [Thu, 8 Oct 2009 01:57:31 +0000 (21:57 -0400)] 
remove explicit addition of dependencies for displayed pages

that hack is not needed, thanks to pagespec influences calculation

11 years agoadd type info to influence information
Joey Hess [Thu, 8 Oct 2009 01:48:03 +0000 (21:48 -0400)] 
add type info to influence information

11 years agoMerge branch 'master' into dependency-types
Joey Hess [Thu, 8 Oct 2009 01:26:57 +0000 (21:26 -0400)] 
Merge branch 'master' into dependency-types

11 years agoupdate
Joey Hess [Thu, 8 Oct 2009 01:26:50 +0000 (21:26 -0400)] 
update

11 years agoconvert add_depends to use influences
Joey Hess [Thu, 8 Oct 2009 01:13:10 +0000 (21:13 -0400)] 
convert add_depends to use influences

No more horrible special-case pagespec parsing.

OTOH, matching over all pages to determine influences is a lot of work.

11 years agoinfluences calculation implemented
Joey Hess [Thu, 8 Oct 2009 00:36:25 +0000 (20:36 -0400)] 
influences calculation implemented

11 years agomore influences tests
Joey Hess [Thu, 8 Oct 2009 00:35:26 +0000 (20:35 -0400)] 
more influences tests

11 years agoadd influence info to match_*
Joey Hess [Thu, 8 Oct 2009 00:31:13 +0000 (20:31 -0400)] 
add influence info to match_*

Also update docs, test suite.

11 years agoMerge branch 'master' into dependency-types
Joey Hess [Thu, 8 Oct 2009 00:02:43 +0000 (20:02 -0400)] 
Merge branch 'master' into dependency-types

11 years agomake success and failreason objects carry an influences hash
Joey Hess [Wed, 7 Oct 2009 23:40:44 +0000 (19:40 -0400)] 
make success and failreason objects carry an influences hash

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).

11 years agomention that pagespec_match returns an overloaded value
Joey Hess [Wed, 7 Oct 2009 22:06:49 +0000 (18:06 -0400)] 
mention that pagespec_match returns an overloaded value

11 years agoMerge branch 'master' into dependency-types
Joey Hess [Wed, 7 Oct 2009 22:04:52 +0000 (18:04 -0400)] 
Merge branch 'master' into dependency-types

11 years agoa theory of pagespec influence lists, for Will's perusal
Joey Hess [Wed, 7 Oct 2009 22:04:13 +0000 (18:04 -0400)] 
a theory of pagespec influence lists, for Will's perusal

11 years ago(no commit message)
Jogo [Wed, 7 Oct 2009 19:22:32 +0000 (15:22 -0400)] 

11 years agoclose
Joey Hess [Wed, 7 Oct 2009 18:30:19 +0000 (14:30 -0400)] 
close

11 years agoMerge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Wed, 7 Oct 2009 18:26:45 +0000 (14:26 -0400)] 
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info

11 years agoproblem with explicit, presence dependencies
Joey Hess [Wed, 7 Oct 2009 18:25:45 +0000 (14:25 -0400)] 
problem with explicit, presence dependencies

11 years agoremove test case for closed bug
Joey Hess [Wed, 7 Oct 2009 18:11:35 +0000 (14:11 -0400)] 
remove test case for closed bug

11 years agofix backlink new change detection code
Joey Hess [Wed, 7 Oct 2009 18:08:03 +0000 (14:08 -0400)] 
fix backlink new change detection code

11 years agolimit to discussion pages of blog posts, not whole wiki
Joey Hess [Wed, 7 Oct 2009 17:55:02 +0000 (13:55 -0400)] 
limit to discussion pages of blog posts, not whole wiki

11 years agoMake it obvious for the reader of the rendered page that the debbug shortcut links...
Thomas Schwinge [Wed, 7 Oct 2009 17:54:46 +0000 (19:54 +0200)] 
Make it obvious for the reader of the rendered page that the debbug shortcut links to Debian bug reports.

11 years agoUse %S instead of %s for the debbug shortcut, so that things like [[!debbug 522689...
Thomas Schwinge [Wed, 7 Oct 2009 17:53:28 +0000 (19:53 +0200)] 
Use %S instead of %s for the debbug shortcut, so that things like [[!debbug 522689#38]] work as expected.

11 years agoMerge branch 'master' into dependency-types
Joey Hess [Wed, 7 Oct 2009 17:36:40 +0000 (13:36 -0400)] 
Merge branch 'master' into dependency-types

11 years agothoughts
Joey Hess [Wed, 7 Oct 2009 17:35:48 +0000 (13:35 -0400)] 
thoughts

11 years agoMerge branch 'master' into dependency-types
Joey Hess [Wed, 7 Oct 2009 17:00:54 +0000 (13:00 -0400)] 
Merge branch 'master' into dependency-types

11 years agoComments (maybe not so helpful - sorry)
http://www.cse.unsw.edu.au/~willu/ [Wed, 7 Oct 2009 06:40:32 +0000 (02:40 -0400)] 
Comments (maybe not so helpful - sorry)

11 years agoMerge branch 'master' into dependency-types
Joey Hess [Wed, 7 Oct 2009 00:20:45 +0000 (20:20 -0400)] 
Merge branch 'master' into dependency-types

Conflicts:
doc/todo/dependency_types.mdwn

11 years agoupdate
Joey Hess [Wed, 7 Oct 2009 00:20:05 +0000 (20:20 -0400)] 
update

11 years agonotes on removal problem
Joey Hess [Wed, 7 Oct 2009 00:19:17 +0000 (20:19 -0400)] 
notes on removal problem

11 years agolinkmap, pagestats: avoid using %links to get a list of pages
Joey Hess [Tue, 6 Oct 2009 23:29:28 +0000 (19:29 -0400)] 
linkmap, pagestats: avoid using %links to get a list of pages

When a page is deleted, it is removed from %pagesources, but
not from %links. So use the former.

11 years agolinkmap: does need presence deps
Joey Hess [Tue, 6 Oct 2009 23:24:17 +0000 (19:24 -0400)] 
linkmap: does need presence deps

Otherwise, removal of a page with no links will not be noticed,
since no links will change.

11 years agoadd_depends should default to content dependencies if unknown type specified
Joey Hess [Tue, 6 Oct 2009 23:07:52 +0000 (19:07 -0400)] 
add_depends should default to content dependencies if unknown type specified

11 years agooops!!
Joey Hess [Tue, 6 Oct 2009 23:03:23 +0000 (19:03 -0400)] 
oops!!

11 years agotypo
Joey Hess [Tue, 6 Oct 2009 22:45:22 +0000 (18:45 -0400)] 
typo

11 years agosupport backlink() in pagespecs for links dependencies
Joey Hess [Tue, 6 Oct 2009 22:44:59 +0000 (18:44 -0400)] 
support backlink() in pagespecs for links dependencies

11 years agoupdate to test backlinks() pagespecs
Joey Hess [Tue, 6 Oct 2009 22:44:34 +0000 (18:44 -0400)] 
update to test backlinks() pagespecs

11 years agopresence dependencies not needed
Joey Hess [Tue, 6 Oct 2009 22:41:09 +0000 (18:41 -0400)] 
presence dependencies not needed

Using just a link dependency is sufficient, since

11 years agopagespec for links dependencies
Joey Hess [Tue, 6 Oct 2009 22:20:11 +0000 (18:20 -0400)] 
pagespec for links dependencies

11 years agofix support of a single dependency that combines links and exists types
Joey Hess [Tue, 6 Oct 2009 22:09:46 +0000 (18:09 -0400)] 
fix support of a single dependency that combines links and exists types

This is very common, and the code has to test each type differently, since
the list of candidates to test, as well as the test, will vary per type.
Much happier with this code now.

11 years agolinkmap: Use a combination of presence and link dependencies.
Joey Hess [Tue, 6 Oct 2009 21:47:10 +0000 (17:47 -0400)] 
linkmap: Use a combination of presence and link dependencies.

This makes the map be regenerated much less frequently, so larger maps are
more practical to use now.

11 years agofix handling of links+content dependency
Joey Hess [Tue, 6 Oct 2009 08:45:57 +0000 (04:45 -0400)] 
fix handling of links+content dependency

Such a dependency is unlikely, but can happen.

11 years agorefactor 3
Joey Hess [Tue, 6 Oct 2009 06:00:34 +0000 (02:00 -0400)] 
refactor 3

Only left one new global

11 years agorefresh refactor 2
Joey Hess [Tue, 6 Oct 2009 04:06:37 +0000 (00:06 -0400)] 
refresh refactor 2

killed one global

11 years agosplit up refresh
Joey Hess [Tue, 6 Oct 2009 03:54:29 +0000 (23:54 -0400)] 
split up refresh

I'd rather have the global variables than the 300 line function

11 years agonew todo
Joey Hess [Tue, 6 Oct 2009 02:59:33 +0000 (22:59 -0400)] 
new todo

11 years agoupdate
Joey Hess [Tue, 6 Oct 2009 02:30:14 +0000 (22:30 -0400)] 
update

11 years agonew link change detection method and general code rework
Joey Hess [Tue, 6 Oct 2009 01:24:55 +0000 (21:24 -0400)] 
new link change detection method and general code rework

This new method for determining when links on pages
have changed should be more efficient, since it avoids
double calculation of the bestlinks.

It also allows collecting data about the old links, before
the scan pass, so the data is accurate when pages move around
and bestlinks change.

Also got some code back to a saner indent level.

11 years agoadd among limit to pagestats
Joey Hess [Tue, 6 Oct 2009 00:54:38 +0000 (20:54 -0400)] 
add among limit to pagestats

11 years agouh oh, this affects link deps
Joey Hess [Mon, 5 Oct 2009 21:44:15 +0000 (17:44 -0400)] 
uh oh, this affects link deps

11 years agoclose
Joey Hess [Mon, 5 Oct 2009 21:15:37 +0000 (17:15 -0400)] 
close

11 years agofixed a while ago
Joey Hess [Mon, 5 Oct 2009 21:12:38 +0000 (17:12 -0400)] 
fixed a while ago

11 years agoMerge branch 'master' into dependency-types
Joey Hess [Mon, 5 Oct 2009 21:11:08 +0000 (17:11 -0400)] 
Merge branch 'master' into dependency-types

11 years agoclose
Joey Hess [Mon, 5 Oct 2009 21:11:03 +0000 (17:11 -0400)] 
close

11 years agonote that this old bug affects more stuff now
Joey Hess [Mon, 5 Oct 2009 21:10:00 +0000 (17:10 -0400)] 
note that this old bug affects more stuff now

11 years agouse among limit for correctness
Joey Hess [Mon, 5 Oct 2009 21:03:16 +0000 (17:03 -0400)] 
use among limit for correctness

11 years agoadd rebuild handing
Joey Hess [Mon, 5 Oct 2009 20:51:33 +0000 (16:51 -0400)] 
add rebuild handing

11 years agotypo
Joey Hess [Mon, 5 Oct 2009 20:48:15 +0000 (16:48 -0400)] 
typo

11 years agoMerge branch 'master' into dependency-types
Joey Hess [Mon, 5 Oct 2009 20:47:40 +0000 (16:47 -0400)] 
Merge branch 'master' into dependency-types

11 years agoresponses, questions, ideas
Joey Hess [Mon, 5 Oct 2009 20:47:12 +0000 (16:47 -0400)] 
responses, questions, ideas

11 years agoMerge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Mon, 5 Oct 2009 20:19:58 +0000 (16:19 -0400)] 
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info

11 years agoresponse
Joey Hess [Mon, 5 Oct 2009 20:18:54 +0000 (16:18 -0400)] 
response

11 years agothoughts about renaming the actual images to .albumimage
http://smcv.pseudorandom.co.uk/ [Mon, 5 Oct 2009 20:08:19 +0000 (16:08 -0400)] 
thoughts about renaming the actual images to .albumimage

11 years agopagestats: Use a combination of precense and link dependencies.
Joey Hess [Mon, 5 Oct 2009 19:44:26 +0000 (15:44 -0400)] 
pagestats: Use a combination of precense and link dependencies.

This makes it more efficient.

It also fixes the same bug that I fixed in orphans recently,
that only changes to the set of displayed pages were considered (or amoung),
which missed changes to links on other pages to those.

Probably this bug was never noticed because pagestats is most often put
on a blog type page, which gets updated anyway when posts change,
and thus the tag cloud was updated.

11 years agotypo
Joey Hess [Mon, 5 Oct 2009 19:43:37 +0000 (15:43 -0400)] 
typo

11 years agoclosures
Joey Hess [Mon, 5 Oct 2009 19:40:18 +0000 (15:40 -0400)] 
closures

11 years agoclarify amoung
Joey Hess [Mon, 5 Oct 2009 19:36:51 +0000 (15:36 -0400)] 
clarify amoung

I found it really hard to understand from the old description..

11 years agoswitch plugins page to use a map instead of an inline
Joey Hess [Mon, 5 Oct 2009 19:26:15 +0000 (15:26 -0400)] 
switch plugins page to use a map instead of an inline

A map just seems a better fit for reference, since it deliniates the
contrib plugins better, and orders better.

It also has the advantage of being less expensive, since the plugins page
does not need to update when eg, the pagecount page changes.

Only downside is, no rss feed of new plugins. Which I know a few people
were subscribed to.

11 years agofix documentation of quick
Joey Hess [Mon, 5 Oct 2009 19:22:17 +0000 (15:22 -0400)] 
fix documentation of quick

It *always* turns off feeds, because feeds require a look
at all pages.

11 years agosyntax
Joey Hess [Mon, 5 Oct 2009 19:17:36 +0000 (15:17 -0400)] 
syntax

11 years agoomit forum and javascript from list
Joey Hess [Mon, 5 Oct 2009 19:16:14 +0000 (15:16 -0400)] 
omit forum and javascript from list

11 years agooprhans: Use a combination of precense and link dependencies.
Joey Hess [Mon, 5 Oct 2009 19:14:18 +0000 (15:14 -0400)] 
oprhans: Use a combination of precense and link dependencies.

This makes it more efficient.

It also fixes a longstanding bug, where if only a small set of pages were
considered by orphans, changes to links on other pages failed to cause an
update.

11 years agouse links dependency
Joey Hess [Mon, 5 Oct 2009 19:09:09 +0000 (15:09 -0400)] 
use links dependency

11 years agoupdate
Joey Hess [Mon, 5 Oct 2009 19:08:57 +0000 (15:08 -0400)] 
update

11 years agomake links dependencies fire if broken links change
Joey Hess [Mon, 5 Oct 2009 19:01:05 +0000 (15:01 -0400)] 
make links dependencies fire if broken links change

11 years agofix add_depends to new api
Joey Hess [Mon, 5 Oct 2009 18:33:42 +0000 (14:33 -0400)] 
fix add_depends to new api

11 years agoimplement links dependencies
Joey Hess [Mon, 5 Oct 2009 18:08:46 +0000 (14:08 -0400)] 
implement links dependencies

Involved some code refactoring so that same code that detects
link changes for backlinks updating can be used for link dependency
checking. The nice thing is that link dep checking is thus
comopletly free!

11 years agotypos
Joey Hess [Mon, 5 Oct 2009 17:40:35 +0000 (13:40 -0400)] 
typos

11 years agoanother UI issue I'm interested in
Jon Dowland [Mon, 5 Oct 2009 14:27:41 +0000 (15:27 +0100)] 
another UI issue I'm interested in

11 years agowould you accept patches for this?
Jon Dowland [Mon, 5 Oct 2009 14:27:03 +0000 (15:27 +0100)] 
would you accept patches for this?

11 years agogood work, thank you!
Jon Dowland [Mon, 5 Oct 2009 14:17:11 +0000 (15:17 +0100)] 
good work, thank you!

11 years agoadd test suite for add_depends
Joey Hess [Mon, 5 Oct 2009 03:27:00 +0000 (23:27 -0400)] 
add test suite for add_depends

and found a bug in my bitmath..

11 years agoMerge branch 'master' into dependency-types
Joey Hess [Mon, 5 Oct 2009 00:37:09 +0000 (20:37 -0400)] 
Merge branch 'master' into dependency-types

11 years agoupdate, add spec for link dependencies
Joey Hess [Mon, 5 Oct 2009 00:35:26 +0000 (20:35 -0400)] 
update, add spec for link dependencies

11 years agoremove /i from regexp
Joey Hess [Mon, 5 Oct 2009 00:35:02 +0000 (20:35 -0400)] 
remove /i from regexp

Nothing case-oriented going on in here.

11 years agoupdate
Joey Hess [Mon, 5 Oct 2009 00:34:43 +0000 (20:34 -0400)] 
update

11 years agorework dependency types code
Joey Hess [Mon, 5 Oct 2009 00:30:21 +0000 (20:30 -0400)] 
rework dependency types code

Simplify, change default content depends number to 1,
change interface to make more sense.

11 years agoupdate
Joey Hess [Sun, 4 Oct 2009 21:38:10 +0000 (17:38 -0400)] 
update

11 years agoupdate
Joey Hess [Sun, 4 Oct 2009 20:40:36 +0000 (16:40 -0400)] 
update

11 years agoupdate
Joey Hess [Sun, 4 Oct 2009 20:36:39 +0000 (16:36 -0400)] 
update

11 years agoMerge branch 'dependency-types' into transitive-dependencies
Joey Hess [Sun, 4 Oct 2009 20:33:58 +0000 (16:33 -0400)] 
Merge branch 'dependency-types' into transitive-dependencies

Conflicts:
IkiWiki/Render.pm

11 years agoMerge branch 'master' into transitive-dependencies
Joey Hess [Sun, 4 Oct 2009 20:28:57 +0000 (16:28 -0400)] 
Merge branch 'master' into transitive-dependencies