Commit Graph

16434 Commits (8cad848af3226e91ff4796f56292beca32447645)

Author SHA1 Message Date
Joey Hess c6b5d3a8c9 response 2012-01-28 22:50:28 -04:00
Joey Hess 6c3cdb04ac Switch to YAML::XS to work around insanity in YAML::Mo. Closes: #657533
https://rt.cpan.org/Ticket/Display.html?id=74487

Gave up trying to support multiple YAML backends. The XS one requires ugly
manual encoding to get unicode right, and doesn't allow dumping yaml
fragments w/o the yaml header, but at least it doesn't randomly crash
on import like YAML::Mo has started to.
2012-01-28 22:36:14 -04:00
Joey Hess e9c38d16fc cleanup 2012-01-28 22:05:59 -04:00
http://kerravonsen.dreamwidth.org/ d96d185f24 why do I always forget something? 2012-01-28 19:19:15 -04:00
http://kerravonsen.dreamwidth.org/ e925b946c8 new plugins, anyone? 2012-01-28 19:18:19 -04:00
http://kerravonsen.dreamwidth.org/ beed6aaaaf new jssearchfield directive 2012-01-28 19:11:39 -04:00
http://kerravonsen.dreamwidth.org/ a5fd547b9f new plugin "jssearchfield" 2012-01-28 19:08:55 -04:00
spalax b0d6eef321 Clearer (I hope) bug report 2012-01-28 15:13:43 -04:00
spalax cac88b738b New bug: encoding problem in calendar plugin 2012-01-28 15:09:31 -04:00
seven 53872ea80b 2012-01-28 10:37:33 -04:00
zut d05463b069 2012-01-28 06:30:47 -04:00
zut a0fe1511ed Oups 2012-01-28 06:29:27 -04:00
zut f312ff30d4 Encoding problem in french with ikiwiki-calendar 2012-01-28 06:26:51 -04:00
simonraven 4ba3c1c104 2012-01-28 06:05:44 -04:00
simonraven c0eca7ddc7 2012-01-28 05:16:52 -04:00
http://kerravonsen.dreamwidth.org/ a631d8b2a5 which came first, the chicken or the egg? 2012-01-26 23:51:04 -04:00
tycho garen 7bfa77380a comment to multi-threading discussion 2012-01-26 21:28:19 -05:00
http://kerravonsen.dreamwidth.org/ 6226d1a765 unofficial opinion 2012-01-26 21:57:21 -04:00
Amitai Schlair d6b7654fcf Move cvs_keyword_subst_args() down with the other internal support routines. 2012-01-26 17:08:12 -05:00
Amitai Schlair ac8eab29e8 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?
2012-01-26 16:57:00 -05:00
Amitai Schlair 9fd09149a3 Mollify strictures about barewords. 2012-01-26 16:55:13 -05:00
http://roughnecks.myopenid.com/ 0d48385bd3 2012-01-25 19:58:39 -04:00
http://smcv.pseudorandom.co.uk/ a8ded6bf1d Fix wikipedia URL: wikipedia.org, not wikimedia.org 2012-01-25 04:55:25 -04:00
Amitai Schlair 722953ac25 Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs 2012-01-25 00:43:07 -05:00
Amitai Schlair c9c5264191 Merge branch 'master' of git://git.ikiwiki.info into cvs 2012-01-25 00:41:53 -05:00
Amitai Schlair 1b73015251 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().
2012-01-24 05:58:41 -05:00
Amitai Schlair 16572fb0b4 Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs 2012-01-24 02:40:59 -05:00
Amitai Schlair 873c404f14 Merge branch 'master' of git://git.ikiwiki.info into cvs 2012-01-24 02:40:43 -05:00
Joey Hess bfda13f16c 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.
2012-01-23 18:39:53 -04:00
Joey Hess 0376a8da8a Merge branch 'master' of ssh://git.ikiwiki.info 2012-01-23 18:16:26 -04:00
Joey Hess 100a68f4e2 fix the nodiscount setting 2012-01-23 18:15:14 -04:00
Amitai Schlair 678c240eff Merge branch 'master' into cvs 2012-01-22 20:50:25 -05:00
Amitai Schlair 354e4aaa04 Merge branch 'master' of git://git.ikiwiki.info 2012-01-22 20:49:34 -05:00
Amitai Schlair 19280af182 pull request (no functional change, just worried I broke easy merging) 2012-01-22 20:48:40 -05:00
Amitai Schlair c7c43cccba Merge branch 'master' into cvs 2012-01-22 20:42:00 -05:00
Amitai Schlair 0d0b87be58 pull request (no functional change, just worried I broke easy merging) 2012-01-22 20:39:12 -05:00
test f9ff7c7aae 2012-01-22 14:55:54 -04:00
Amitai Schlair a64b224f52 Merge branch 'master' into cvs 2012-01-22 11:18:07 -05:00
Amitai Schlair 662d256c82 ignore a file that always clutters status on OS X (no known fix) 2012-01-22 11:17:19 -05:00
Amitai Schlair ad0e56cdca Define required programs and modules at top for easy spotting. 2012-01-22 11:07:58 -05:00
Amitai Schlair c74571c758 Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs
Conflicts:
	TODO.cvs
	t/cvs.t
2012-01-22 10:53:45 -05:00
Amitai Schlair c1bbff4bfb update 2012-01-22 10:45:17 -05:00
Amitai Schlair 8e99750545 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).
2012-01-22 10:44:50 -05:00
Amitai Schlair ea04eb4102 Test::Class runs test subs in alphabetical order, so we do too. 2012-01-22 10:44:50 -05:00
Amitai Schlair 88b08b5835 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.
2012-01-22 10:44:50 -05:00
Amitai Schlair 1ea4949257 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
2012-01-22 10:44:49 -05:00
Amitai Schlair 3497f49f35 Fix regression: failing to make the temp dir should nix the test plan.
While here, nitpick style and wrap long lines.
2012-01-22 10:44:49 -05:00
Amitai Schlair 0b7d5aeeb6 Use config parameters directly and shorten long lines. 2012-01-22 10:44:49 -05:00
Amitai Schlair d760df3821 * 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.
2012-01-22 10:44:49 -05:00
Amitai Schlair b77da0bb3b Fix a typo in the web commit test. 2012-01-22 10:44:49 -05:00