Amitai Schlair [Thu, 26 Jan 2012 22:08:12 +0000 (17:08 -0500)]
Move cvs_keyword_subst_args() down with the other internal support routines.
Amitai Schlair [Thu, 26 Jan 2012 21:57:00 +0000 (16:57 -0500)]
Uncomment the CVS keyword substitution mode tests, and make them pass:
Extract cvs_keyword_subst_args() and ensure it runs in $config{srcdir}.
Using Perl's -T operator appears to work equally well, perhaps switch?
Amitai Schlair [Thu, 26 Jan 2012 21:55:13 +0000 (16:55 -0500)]
Mollify strictures about barewords.
Amitai Schlair [Wed, 25 Jan 2012 05:43:07 +0000 (00:43 -0500)]
Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs
Amitai Schlair [Wed, 25 Jan 2012 05:41:53 +0000 (00:41 -0500)]
Merge branch 'master' of git://git.ikiwiki.info into cvs
Amitai Schlair [Tue, 24 Jan 2012 10:58:41 +0000 (05:58 -0500)]
Move tests that simulate web commits into test_rcs_add(), then add
a bunch more tests (that wind up exercising rcs_commit(),
rcs_commit_staged(), and rcs_recentchanges()). Extract some support
routines for brevity. Most is_in_keyword_substitution_mode() tests
are commented out because there's a bug -- non-binary files are
being added with "cvs add -kb".
Move tests that inspect recentchanges after direct CVS operations
into test_rcs_recentchanges().
Amitai Schlair [Tue, 24 Jan 2012 07:40:59 +0000 (02:40 -0500)]
Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs
Amitai Schlair [Tue, 24 Jan 2012 07:40:43 +0000 (02:40 -0500)]
Merge branch 'master' of git://git.ikiwiki.info into cvs
Joey Hess [Mon, 23 Jan 2012 22:36:33 +0000 (18:36 -0400)]
recentchangesdiff: truncate extremely large diffs
A diff was already truncated after 200 lines. But it could still be
arbitrarily enormous, if a spammer or other random noise source likes long
lines. That could use a lot of memory to html encode etc the diff and fill
it into the template. Truncating after 100kb seems sufficient; it allows
for 200 lines of up to 512 characters each.
Joey Hess [Mon, 23 Jan 2012 22:16:26 +0000 (18:16 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info
Joey Hess [Mon, 23 Jan 2012 22:15:14 +0000 (18:15 -0400)]
fix the nodiscount setting
Amitai Schlair [Mon, 23 Jan 2012 01:50:25 +0000 (20:50 -0500)]
Merge branch 'master' into cvs
Amitai Schlair [Mon, 23 Jan 2012 01:49:34 +0000 (20:49 -0500)]
Merge branch 'master' of git://git.ikiwiki.info
Amitai Schlair [Mon, 23 Jan 2012 01:39:12 +0000 (20:39 -0500)]
pull request (no functional change, just worried I broke easy merging)
Amitai Schlair [Mon, 23 Jan 2012 01:42:00 +0000 (20:42 -0500)]
Merge branch 'master' into cvs
Amitai Schlair [Mon, 23 Jan 2012 01:39:12 +0000 (20:39 -0500)]
pull request (no functional change, just worried I broke easy merging)
test [Sun, 22 Jan 2012 18:55:54 +0000 (14:55 -0400)]
Amitai Schlair [Sun, 22 Jan 2012 16:18:07 +0000 (11:18 -0500)]
Merge branch 'master' into cvs
Amitai Schlair [Sun, 22 Jan 2012 16:17:19 +0000 (11:17 -0500)]
ignore a file that always clutters status on OS X (no known fix)
Amitai Schlair [Sun, 22 Jan 2012 16:07:58 +0000 (11:07 -0500)]
Define required programs and modules at top for easy spotting.
Amitai Schlair [Sun, 22 Jan 2012 15:53:45 +0000 (10:53 -0500)]
Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs
Conflicts:
TODO.cvs
t/cvs.t
Amitai Schlair [Sun, 22 Jan 2012 15:36:38 +0000 (10:36 -0500)]
update
Amitai Schlair [Sun, 22 Jan 2012 15:31:49 +0000 (10:31 -0500)]
No functional change: sort sub definitions.
In the code:
* general plugin API calls (in plugins/write order),
* VCS plugin API calls (in plugins/write order), then
* internal support routines (in alphabetical order).
In the tests:
* general meta-behavior (in no particular order, yet),
* general plugin API calls (in plugins/write order),
* VCS plugin API calls (in plugins/write order), then
* internal support routines (in semi-logical order).
Amitai Schlair [Sun, 22 Jan 2012 15:07:07 +0000 (10:07 -0500)]
Test::Class runs test subs in alphabetical order, so we do too.
Amitai Schlair [Sun, 22 Jan 2012 14:54:30 +0000 (09:54 -0500)]
Ape xUnit more closely to remove ordering constraints on test subs:
* Add setup and teardown methods, called before and after every test sub.
* In setup, make a fresh repo; in teardown, throw it out.
* Extract runtests method and define default test methods at top.
* Move reflection routines near the xUnit-style subs they support.
Adapt existing test subs to run independently:
* In test_manual_add_and_commit(), assume a fresh repo.
While here, plan a bit better:
* Check for all modules used by cvs.pm.
* Check for program existence more generally.
* Check that we can rmdir after mkdir.
Amitai Schlair [Sun, 22 Jan 2012 07:30:48 +0000 (02:30 -0500)]
Describe the needed test cases, and implement a couple Test::Class features.
* Run all subs matching /^test_*/ (for which we can plan)...
* Unless TEST_METHOD is set, in which case run matching subs (sans plan).
* Define total number of tests very near 'use Test::More', where expected.
* Define test tempdir where it's declared, no longer any reason why not.
* Move most comments from TODO.cvs into t/cvs.t.
* Add a whole bunch more comments describing the needed test cases.
XXX existing tests are order-dependent, but currently happen to pass
Amitai Schlair [Sun, 22 Jan 2012 01:54:26 +0000 (20:54 -0500)]
Fix regression: failing to make the temp dir should nix the test plan.
While here, nitpick style and wrap long lines.
Amitai Schlair [Sun, 22 Jan 2012 01:40:20 +0000 (20:40 -0500)]
Use config parameters directly and shorten long lines.
Amitai Schlair [Sun, 22 Jan 2012 01:17:52 +0000 (20:17 -0500)]
* Define expected number of tests near the top.
* Call readfile() directly from writefile().
* Parameterize commit message for the web-commit case.
* Describe intent of test cases.
* Rename test subs to match what they actually do.
* To prove extra path slashes don't cause trouble, instead of running
the same tests a second time, just assert that checkconfig()
strips the slashes.
Amitai Schlair [Sat, 21 Jan 2012 20:25:57 +0000 (15:25 -0500)]
Fix a typo in the web commit test.
Amitai Schlair [Sat, 21 Jan 2012 20:00:52 +0000 (15:00 -0500)]
Simplify startup: use Test::More unconditionally, then determine
the test plan at runtime. Use IkiWiki unconditionally too (as that's
not what I'm testing here) to avoid the TAP error of printing a
test result before having printed the plan.
Amitai Schlair [Sat, 21 Jan 2012 19:37:24 +0000 (14:37 -0500)]
Extract subs: startup/shutdown, and tests for web and manual commits.
No functional change intended.
Amitai Schlair [Sun, 8 Jan 2012 18:33:04 +0000 (13:33 -0500)]
add TODO notes
Amitai Schlair [Sun, 22 Jan 2012 15:42:01 +0000 (10:42 -0500)]
point to my branch, wrap lines, working on test coverage now
Amitai Schlair [Sun, 22 Jan 2012 07:40:38 +0000 (02:40 -0500)]
Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs
Conflicts:
TODO.cvs
Amitai Schlair [Sun, 22 Jan 2012 07:30:48 +0000 (02:30 -0500)]
Describe the needed test cases, and implement a couple Test::Class features.
* Run all subs matching /^test_*/ (for which we can plan)...
* Unless TEST_METHOD is set, in which case run matching subs (sans plan).
* Define total number of tests very near 'use Test::More', where expected.
* Define test tempdir where it's declared, no longer any reason why not.
* Move most comments from TODO.cvs into t/cvs.t.
* Add a whole bunch more comments describing the needed test cases.
XXX existing tests are order-dependent, but currently happen to pass
Amitai Schlair [Sun, 22 Jan 2012 01:54:26 +0000 (20:54 -0500)]
Fix regression: failing to make the temp dir should nix the test plan.
While here, nitpick style and wrap long lines.
Amitai Schlair [Sun, 22 Jan 2012 01:40:20 +0000 (20:40 -0500)]
Use config parameters directly and shorten long lines.
Amitai Schlair [Sun, 22 Jan 2012 01:17:52 +0000 (20:17 -0500)]
* Define expected number of tests near the top.
* Call readfile() directly from writefile().
* Parameterize commit message for the web-commit case.
* Describe intent of test cases.
* Rename test subs to match what they actually do.
* To prove extra path slashes don't cause trouble, instead of running
the same tests a second time, just assert that checkconfig()
strips the slashes.
Amitai Schlair [Sat, 21 Jan 2012 20:25:57 +0000 (15:25 -0500)]
Fix a typo in the web commit test.
Amitai Schlair [Sat, 21 Jan 2012 20:00:52 +0000 (15:00 -0500)]
Simplify startup: use Test::More unconditionally, then determine
the test plan at runtime. Use IkiWiki unconditionally too (as that's
not what I'm testing here) to avoid the TAP error of printing a
test result before having printed the plan.
Amitai Schlair [Sat, 21 Jan 2012 19:37:24 +0000 (14:37 -0500)]
Extract subs: startup/shutdown, and tests for web and manual commits.
No functional change intended.
Amitai Schlair [Sun, 8 Jan 2012 18:33:04 +0000 (13:33 -0500)]
add TODO notes
for rcs_remove(), there's no new file
Javier Rojas [Sat, 21 Jan 2012 21:47:16 +0000 (16:47 -0500)]
comment - index attachments
Amitai Schlair [Sat, 21 Jan 2012 03:33:27 +0000 (22:33 -0500)]
Merge branch 'master' into cvs
http://smcv.pseudorandom.co.uk/ [Fri, 20 Jan 2012 14:00:50 +0000 (10:00 -0400)]
https://launchpad.net/~vanyok [Fri, 20 Jan 2012 12:44:44 +0000 (08:44 -0400)]
https://launchpad.net/~vanyok [Fri, 20 Jan 2012 12:42:51 +0000 (08:42 -0400)]
some test records
http://jno.homeip.net/owncloud/?jno [Fri, 20 Jan 2012 10:54:14 +0000 (06:54 -0400)]
тест
Added a comment: apache module?
removed
Added a comment: apache module?
Joey Hess [Wed, 18 Jan 2012 03:26:55 +0000 (23:26 -0400)]
response
Added a comment
can the 'add comment' form be generated and returned even if the srcdir is locked?
Added a comment: just my 2 cents
http://hands.com/~phil/ [Tue, 17 Jan 2012 08:49:43 +0000 (04:49 -0400)]
fix underlay link
Added a comment: updating setup file
Added a comment: Great! It worked!
http://hands.com/~phil/ [Mon, 16 Jan 2012 22:53:35 +0000 (18:53 -0400)]
removed
Joey Hess [Mon, 16 Jan 2012 17:42:30 +0000 (13:42 -0400)]
mdwn: Added nodiscount setting, which can be used to avoid using the markdown discount engine, when maximum compatability is needed.
Added a comment: thats cool
http://joey.kitenet.net/ [Mon, 16 Jan 2012 14:52:22 +0000 (10:52 -0400)]
Added a comment
http://kerravonsen.dreamwidth.org/ [Mon, 16 Jan 2012 06:31:27 +0000 (02:31 -0400)]
oops typo
http://kerravonsen.dreamwidth.org/ [Mon, 16 Jan 2012 06:30:38 +0000 (02:30 -0400)]
new plugin "newpage"
Javier Rojas [Mon, 16 Jan 2012 00:18:30 +0000 (19:18 -0500)]
correction to username
Javier Rojas [Mon, 16 Jan 2012 00:16:44 +0000 (19:16 -0500)]
reply - search attachments
Joey Hess [Sun, 15 Jan 2012 20:45:34 +0000 (16:45 -0400)]
add news item for ikiwiki 3.
20120115
Joey Hess [Sun, 15 Jan 2012 20:44:58 +0000 (16:44 -0400)]
releasing version 3.
20120115
Joey Hess [Sun, 15 Jan 2012 20:39:13 +0000 (16:39 -0400)]
attachment: Fix utf-8 display bug.
Joey Hess [Sun, 15 Jan 2012 20:28:51 +0000 (16:28 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info
Joey Hess [Sun, 15 Jan 2012 20:27:32 +0000 (16:27 -0400)]
releasing version 3.
20120115
Joey Hess [Sun, 15 Jan 2012 20:19:22 +0000 (16:19 -0400)]
Workaround discount's eliding of <style> blocks.
Added a comment
Added a comment
http://kerravonsen.dreamwidth.org/ [Fri, 13 Jan 2012 22:32:47 +0000 (18:32 -0400)]
Added a comment
http://kerravonsen.dreamwidth.org/ [Fri, 13 Jan 2012 22:31:02 +0000 (18:31 -0400)]
removed
http://kerravonsen.dreamwidth.org/ [Fri, 13 Jan 2012 22:30:33 +0000 (18:30 -0400)]
Added a comment
http://joey.kitenet.net/ [Fri, 13 Jan 2012 17:46:50 +0000 (13:46 -0400)]
Added a comment
Joey Hess [Fri, 13 Jan 2012 17:43:31 +0000 (13:43 -0400)]
Make backlink(.) work. Thanks, Giuseppe Bilotta.
Giuseppe Bilotta [Fri, 13 Jan 2012 10:02:11 +0000 (11:02 +0100)]
backlink(.) should behave like backlink(<current page>)
Since commit
c4d4cad3befbbd444d094cbeb0b6ebba3910a025, the single dot in
a pagespec can be used to mean the current page. While this worked
correctly in link() it didn't work in backlink(). Fix this by explicitly
checking the testpage in backlink against . and replacing it with the
current location if necessary.
Giuseppe Bilotta [Fri, 13 Jan 2012 10:13:34 +0000 (11:13 +0100)]
Propose patch to fix backlink(.)
smv [Fri, 13 Jan 2012 01:20:47 +0000 (21:20 -0400)]
Jon Dowland [Wed, 11 Jan 2012 15:17:28 +0000 (15:17 +0000)]
simplify bug report
Jon Dowland [Wed, 11 Jan 2012 15:15:37 +0000 (15:15 +0000)]
test doesn't work live. damnit. try varying pagespec
Jon Dowland [Wed, 11 Jan 2012 15:13:46 +0000 (15:13 +0000)]
backlink(.) doesn't work
Javier Rojas [Wed, 11 Jan 2012 03:20:48 +0000 (22:20 -0500)]
new forum post about search in attachments
Joey Hess [Mon, 9 Jan 2012 16:17:35 +0000 (12:17 -0400)]
add news item for ikiwiki 3.
20120109
Joey Hess [Mon, 9 Jan 2012 16:17:24 +0000 (12:17 -0400)]
releasing version 3.
20120109
Joey Hess [Mon, 9 Jan 2012 14:34:23 +0000 (10:34 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info