irker.git
11 years agoVersion bump for 1.17 release. 1.17
Eric S. Raymond [Sun, 3 Feb 2013 21:08:48 +0000 (16:08 -0500)]
Version bump for 1.17 release.

11 years agoEnsure connections we consider dead are actually closed
Alexander van Gessel [Mon, 21 Jan 2013 03:04:51 +0000 (04:04 +0100)]
Ensure connections we consider dead are actually closed

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoTruncate messages that are longer than 512 bytes and catch any exceptions irclib...
Alexander van Gessel [Mon, 21 Jan 2013 03:04:06 +0000 (04:04 +0100)]
Truncate messages that are longer than 512 bytes and catch any exceptions irclib throws about rejected messages.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoDocumentation fix.
Eric S. Raymond [Fri, 25 Jan 2013 11:52:17 +0000 (06:52 -0500)]
Documentation fix.

11 years agoPunctuation fix.
Eric S. Raymond [Fri, 25 Jan 2013 11:46:21 +0000 (06:46 -0500)]
Punctuation fix.

11 years agoTypo fix.
Eric S. Raymond [Fri, 25 Jan 2013 04:29:04 +0000 (23:29 -0500)]
Typo fix.

11 years agoVersin bump for release 1.16. 1.16
Eric S. Raymond [Fri, 25 Jan 2013 03:43:27 +0000 (22:43 -0500)]
Versin bump for release 1.16.

11 years agoPrepare for release.
Eric S. Raymond [Fri, 25 Jan 2013 03:25:51 +0000 (22:25 -0500)]
Prepare for release.

11 years agoDo not crash when there is a "|" in the commit line
Laurent Bachelier [Wed, 23 Jan 2013 21:45:19 +0000 (22:45 +0100)]
Do not crash when there is a "|" in the commit line

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoirkerhook: Fix handling of non-ascii author name
Bernhard Reutner-Fischer [Wed, 9 Jan 2013 11:32:39 +0000 (12:32 +0100)]
irkerhook: Fix handling of non-ascii author name

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
for non-ascii input, irkerhook.py dies with:

remote: Traceback (most recent call last):
remote:   File "/usr/bin/irkerhook.py", line 484, in <module>
remote:     ship(extractor, commit, not notify)
remote:   File "/usr/bin/irkerhook.py", line 391, in ship
remote:     metadata = extractor.commit_factory(commit)
remote:   File "/usr/bin/irkerhook.py", line 262, in commit_factory
remote:     metainfo = do("git log -1 '--pretty=format:%an <%ae>|%s' " +
shellquote(commit.commit))
remote:   File "/usr/bin/irkerhook.py", line 50, in do
remote:     return unicode(commands.getstatusoutput(command)[1],
locale.getpreferredencoding() or 'UTF-8')
remote: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
position 8: ordinal not in range(128)

for e.g. this author name:
$ git log -n1 --pretty="format:%an" | cat;echo
Timo Teräs
$ git log -n1 --pretty="format:%an" | od -x;echo
0000000 6954 6f6d 5420 7265 a4c3 0073
0000013
So:
$ for i in C POSIX en_US.UTF-8;do echo "# $i";LC_ALL=$i python -c
"import locale;print locale.getlocale()[1];print unicode(\"ä\",
locale.getlocale()[1] or 'UTF-8').encode(locale.getlocale()[1] or
'UTF-8')";done
None
ä
None
ä
None
ä

11 years agoPrepare 1.15 release, with a minor bugfix in the Subversion hook.. 1.15
Eric S. Raymond [Sun, 9 Dec 2012 01:37:32 +0000 (20:37 -0500)]
Prepare 1.15 release, with a minor bugfix in the Subversion hook..

11 years agoDate stamp. 1.14
Eric S. Raymond [Mon, 26 Nov 2012 06:08:26 +0000 (01:08 -0500)]
Date stamp.

11 years agoVersion bump for 1.14 release.
Eric S. Raymond [Mon, 26 Nov 2012 06:06:56 +0000 (01:06 -0500)]
Version bump for 1.14 release.

11 years agoWhitespace fix. Code is pylint clean and working.
Eric S. Raymond [Mon, 26 Nov 2012 06:05:44 +0000 (01:05 -0500)]
Whitespace fix.  Code is pylint clean and working.

11 years agoAnother hand-merged bugfix by AI0867.
Eric S. Raymond [Mon, 26 Nov 2012 06:01:14 +0000 (01:01 -0500)]
Another hand-merged bugfix by AI0867.

11 years agoHand-merge of a compatibility fix by AI0867: irclib5 compatibility.
Eric S. Raymond [Mon, 26 Nov 2012 05:52:56 +0000 (00:52 -0500)]
Hand-merge of a compatibility fix by AI0867: irclib5 compatibility.

11 years agoFix submitted by dmlm for generated Mercrial URLs.
Eric S. Raymond [Fri, 23 Nov 2012 04:58:19 +0000 (23:58 -0500)]
Fix submitted by dmlm for generated Mercrial URLs.

The constructed mercurial url is wrong - it creates urls like
"repo/rev3456fg", which just get redirected to the default log, rather
than the commit. The url should be "repo/rev/3456fg".

11 years agoReady for 1.13 release. 1.13
Eric S. Raymond [Wed, 7 Nov 2012 05:45:23 +0000 (00:45 -0500)]
Ready for 1.13 release.

11 years agoConfigure irclib's line decoder to not fail on invalid utf-8
Alexander van Gessel (AI0867) [Sun, 4 Nov 2012 01:38:10 +0000 (02:38 +0100)]
Configure irclib's line decoder to not fail on invalid utf-8

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoSupport tinyifiers with UTF-8 results
Laurent Bachelier [Tue, 23 Oct 2012 04:48:21 +0000 (06:48 +0200)]
Support tinyifiers with UTF-8 results

This does not change anything for tinyurl (the default), but allows
using http://tinyarro.ws/api-create.php?utfpure=1&url=
In case invalid characters are encountered, fall back to str.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoFix syntax of 'channels' parameter in 'git' section
Romain Bignon [Thu, 25 Oct 2012 11:43:22 +0000 (13:43 +0200)]
Fix syntax of 'channels' parameter in 'git' section

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoAvoid a portability problem.
Eric S. Raymond [Thu, 25 Oct 2012 11:34:32 +0000 (07:34 -0400)]
Avoid a portability problem.

11 years agoChange the documented library requirement to 3.4.
Eric S. Raymond [Sun, 21 Oct 2012 01:48:23 +0000 (21:48 -0400)]
Change the documented library requirement to 3.4.

11 years agoRemove a mutex guard that is probably unecessary.
Eric S. Raymond [Fri, 19 Oct 2012 21:01:12 +0000 (17:01 -0400)]
Remove a mutex guard that is probably unecessary.

AI0867 reported this was causing a rare hang during disconnect.
Also, set the connection status to expired if the thread terminates
due to exception.

11 years agoirclib is 2.6-compatible again.
Eric S. Raymond [Sun, 14 Oct 2012 20:24:39 +0000 (16:24 -0400)]
irclib is 2.6-compatible again.

11 years agoMake SVN extractor strip trailing blank lines.
Eric S. Raymond [Sun, 14 Oct 2012 04:16:02 +0000 (00:16 -0400)]
Make SVN extractor strip trailing blank lines.

11 years agoDocument a dependency.
Eric S. Raymond [Sun, 14 Oct 2012 04:07:48 +0000 (00:07 -0400)]
Document a dependency.

11 years agoRevert "Rely on the thread safety of the IRC library at versions >= 3.2.1."
Eric S. Raymond [Sat, 13 Oct 2012 09:44:42 +0000 (05:44 -0400)]
Revert "Rely on the thread safety of the IRC library at versions >= 3.2.1."

Boom!  Blew up, first time tested.

11 years agoRely on the thread safety of the IRC library at versions >= 3.2.1.
Eric S. Raymond [Sat, 13 Oct 2012 09:43:01 +0000 (05:43 -0400)]
Rely on the thread safety of the IRC library at versions >= 3.2.1.

11 years agoRequire urclib 3.2.2. Has a "fix" for the UnicodeDecodeError problem.
Eric S. Raymond [Sat, 13 Oct 2012 09:33:03 +0000 (05:33 -0400)]
Require urclib 3.2.2.  Has a "fix" for the UnicodeDecodeError problem.

Alas, the fix violates RFC2812.

11 years agoVersion bump for release. 1.12
Eric S. Raymond [Thu, 11 Oct 2012 18:54:09 +0000 (14:54 -0400)]
Version bump for release.

11 years agoTypo fix.
Eric S. Raymond [Thu, 11 Oct 2012 18:51:33 +0000 (14:51 -0400)]
Typo fix.

11 years agoEmergency fix for IRC library bug.
Eric S. Raymond [Thu, 11 Oct 2012 18:49:02 +0000 (14:49 -0400)]
Emergency fix for IRC library bug.

11 years agoMicellaneous documentation and metadata updates.
Eric S. Raymond [Thu, 11 Oct 2012 09:19:36 +0000 (05:19 -0400)]
Micellaneous documentation and metadata updates.

11 years agoRemove an antiscocial default.
Eric S. Raymond [Thu, 11 Oct 2012 03:05:41 +0000 (23:05 -0400)]
Remove an antiscocial default.

11 years agoirlerd can sharte the library mutex introduced in irclib 3.2.
Eric S. Raymond [Wed, 10 Oct 2012 23:35:09 +0000 (19:35 -0400)]
irlerd can sharte the library mutex introduced in irclib 3.2.

11 years agoVersion bump for release. 1.11
Eric S. Raymond [Wed, 10 Oct 2012 21:40:23 +0000 (17:40 -0400)]
Version bump for release.

11 years agoAdd the "cialike" option. And a missing extraction of filtercmd from hg.
Eric S. Raymond [Wed, 10 Oct 2012 21:19:04 +0000 (17:19 -0400)]
Add the "cialike" option.  And a missing extraction of filtercmd from hg.

11 years agoDocumentation updates.
Eric S. Raymond [Wed, 10 Oct 2012 20:22:04 +0000 (16:22 -0400)]
Documentation updates.

11 years agoSupport piping text to irk
Laurent Bachelier [Wed, 10 Oct 2012 19:02:05 +0000 (21:02 +0200)]
Support piping text to irk

Usage: outcmd|irk target -
Sending "-" is still possible by echo -|irk target -

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoRemove .git from guessed project name
Laurent Bachelier [Wed, 10 Oct 2012 19:02:03 +0000 (21:02 +0200)]
Remove .git from guessed project name

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoNote an avoided failure mode.
Eric S. Raymond [Wed, 10 Oct 2012 16:50:50 +0000 (12:50 -0400)]
Note an avoided failure mode.

11 years agoDocumentation improvements.
Eric S. Raymond [Tue, 9 Oct 2012 20:31:01 +0000 (16:31 -0400)]
Documentation improvements.

11 years agoUse unicode as much as possible.
Laurent Bachelier [Tue, 9 Oct 2012 19:35:54 +0000 (21:35 +0200)]
Use unicode as much as possible.

This fixes a corner case where if you had a non-ASCII character in a
commit and a filter command, you would end up with an unicode string and
irkerhook.py would crash.
But it would somehow work if you did not have a filter command.
For both modes cases to work, forcing unicode in do() and then using
unicode methods are required.
JSON is unicode by default, and this is why the issues happened.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoA slightly cheaper idle, now that greenlets are gone.
Eric S. Raymond [Tue, 9 Oct 2012 18:34:40 +0000 (14:34 -0400)]
A slightly cheaper idle, now that greenlets are gone.

11 years agoMake sure in the release proces that git push is done before git push --tags.
Eric S. Raymond [Tue, 9 Oct 2012 11:33:30 +0000 (07:33 -0400)]
Make sure in the release proces that git push is done before git push --tags.

11 years agoVersion bump for release. 1.10
Eric S. Raymond [Tue, 9 Oct 2012 11:13:01 +0000 (07:13 -0400)]
Version bump for release.

11 years agoMore documentation improvement.
Eric S. Raymond [Tue, 9 Oct 2012 11:10:45 +0000 (07:10 -0400)]
More documentation improvement.

11 years agoDocumentation tweak.
Eric S. Raymond [Tue, 9 Oct 2012 11:05:21 +0000 (07:05 -0400)]
Documentation tweak.

11 years agoMake the mIRC color highlighting bearable on ChatZila.
Rick Gibbed [Tue, 9 Oct 2012 02:26:43 +0000 (22:26 -0400)]
Make the mIRC color highlighting bearable on ChatZila.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoNews update.
Eric S. Raymond [Tue, 9 Oct 2012 01:26:34 +0000 (21:26 -0400)]
News update.

11 years agoNote where ANSI codes are supported.
Eric S. Raymond [Tue, 9 Oct 2012 01:23:46 +0000 (21:23 -0400)]
Note where ANSI codes are supported.

11 years agoReinstate mIRC codes in a form that won't eat following text.
Rick Gibbed [Tue, 9 Oct 2012 01:19:58 +0000 (21:19 -0400)]
Reinstate mIRC codes in a form that won't eat following text.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoRemove eventlet support.
Eric S. Raymond [Tue, 9 Oct 2012 00:27:07 +0000 (20:27 -0400)]
Remove eventlet support.

It seems to collide, hard, with the (necessary) library mutex.
Also it was really complicating testing.

11 years agoPrevent a TTL bug.
Eric S. Raymond [Tue, 9 Oct 2012 00:24:40 +0000 (20:24 -0400)]
Prevent a TTL bug.

11 years agoRemove support for mIRC color codes.
Eric S. Raymond [Mon, 8 Oct 2012 19:57:40 +0000 (15:57 -0400)]
Remove support for mIRC color codes.

They tend to produce unwanted effects when an mIRC code is directly
followed by a text digit (which is going to happen often in this context, e.g.
with git hex commit IDs). the mIRC codes have no end delimiter, so
unless the client's recognizer is very carefully crafted it will eat
following text.

11 years agoCorrect the ANSI highlights.
Eric S. Raymond [Mon, 8 Oct 2012 17:25:04 +0000 (13:25 -0400)]
Correct the ANSI highlights.

11 years agoLooks like 1.5 seconds was enough delay.
Eric S. Raymond [Mon, 8 Oct 2012 16:47:33 +0000 (12:47 -0400)]
Looks like 1.5 seconds was enough delay.

11 years agoAttempt a fix for a race condition in filter-test.py.
Eric S. Raymond [Mon, 8 Oct 2012 16:46:10 +0000 (12:46 -0400)]
Attempt a fix for a race condition in filter-test.py.

11 years agoUpdate the release procedure.
Eric S. Raymond [Mon, 8 Oct 2012 16:42:41 +0000 (12:42 -0400)]
Update the release procedure.

11 years agoComment improvements.
Eric S. Raymond [Mon, 8 Oct 2012 16:11:44 +0000 (12:11 -0400)]
Comment improvements.

11 years agoMerge commit 'refs/merge-requests/16' of git://gitorious.org/irker/irker into merge...
Eric S. Raymond [Mon, 8 Oct 2012 16:00:05 +0000 (12:00 -0400)]
Merge commit 'refs/merge-requests/16' of git://gitorious.org/irker/irker into merge-requests/16

11 years agoMerge some minor cleanups by Peter Scott.
Eric S. Raymond [Mon, 8 Oct 2012 15:58:36 +0000 (11:58 -0400)]
Merge some minor cleanups by Peter Scott.

11 years agoGet the tag-push invocation right.
Eric S. Raymond [Mon, 8 Oct 2012 15:25:31 +0000 (11:25 -0400)]
Get the tag-push invocation right.

11 years agoVersion bump for release. 1.9
Eric S. Raymond [Mon, 8 Oct 2012 15:06:53 +0000 (11:06 -0400)]
Version bump for release.

11 years agoSync tags to the repo after shipping.
Eric S. Raymond [Mon, 8 Oct 2012 15:02:31 +0000 (11:02 -0400)]
Sync tags to the repo after shipping.

11 years agoPassword support could be done by passing the credential every time.
Eric S. Raymond [Mon, 8 Oct 2012 14:59:30 +0000 (10:59 -0400)]
Password support could be done by passing the credential every time.

11 years agoDocumentation improvements.
Eric S. Raymond [Mon, 8 Oct 2012 14:56:59 +0000 (10:56 -0400)]
Documentation improvements.

11 years agoExpire disconnected connections if they aren't needed or can't reconnect
Alexander van Gessel (AI0867) [Mon, 8 Oct 2012 10:29:49 +0000 (12:29 +0200)]
Expire disconnected connections if they aren't needed or can't reconnect

11 years agoPrevent CPU usage from going to max due to loop buzzing.
Eric S. Raymond [Mon, 8 Oct 2012 08:51:12 +0000 (04:51 -0400)]
Prevent CPU usage from going to max due to loop buzzing.

11 years agoTinyifier fixes
Laurent Bachelier [Mon, 8 Oct 2012 08:37:23 +0000 (10:37 +0200)]
Tinyifier fixes

- use the right config for Mercurial extractor
- use the default tinyifier if nothing is provided
- support using no tinyifier (=none or empty)

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoAvoid a problem with the mutex code.
Eric S. Raymond [Mon, 8 Oct 2012 08:28:21 +0000 (04:28 -0400)]
Avoid a problem with the mutex code.

11 years agoWrap library calls in a mutex for thread safety.
Eric S. Raymond [Mon, 8 Oct 2012 04:57:57 +0000 (00:57 -0400)]
Wrap library calls in a mutex for thread safety.

11 years agoWhy there's no support for password authentication.
Eric S. Raymond [Mon, 8 Oct 2012 00:00:08 +0000 (20:00 -0400)]
Why there's no support for password authentication.

11 years agoAnother try at stomping the disconnect bug.
Eric S. Raymond [Sun, 7 Oct 2012 23:24:38 +0000 (19:24 -0400)]
Another try at stomping the disconnect bug.

11 years agoEmpty sends are allowed.
Eric S. Raymond [Sun, 7 Oct 2012 21:18:48 +0000 (17:18 -0400)]
Empty sends are allowed.

11 years agoInstrumentation to pin down laurentb's timeout bug.
Eric S. Raymond [Sun, 7 Oct 2012 16:24:36 +0000 (12:24 -0400)]
Instrumentation to pin down laurentb's timeout bug.

11 years agoMake install.html available on the project page.
Eric S. Raymond [Sun, 7 Oct 2012 15:42:09 +0000 (11:42 -0400)]
Make install.html available on the project page.

11 years agoRevert "Properly \n-terminate each send."
Eric S. Raymond [Sun, 7 Oct 2012 15:38:08 +0000 (11:38 -0400)]
Revert "Properly \n-terminate each send."

I misunderstood the RFCs. Curious that someone else reported this
before I saw it.

11 years agoAdd a systemd unit to start irkerd
Wulf C. Krueger [Sun, 7 Oct 2012 09:06:14 +0000 (11:06 +0200)]
Add a systemd unit to start irkerd

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoTypo fix.
Eric S. Raymond [Sun, 7 Oct 2012 09:40:20 +0000 (05:40 -0400)]
Typo fix.

11 years agoClarification.
Eric S. Raymond [Sun, 7 Oct 2012 09:37:34 +0000 (05:37 -0400)]
Clarification.

11 years agoNote that greenlets make thread flooding more difficult.
Eric S. Raymond [Sun, 7 Oct 2012 09:33:45 +0000 (05:33 -0400)]
Note that greenlets make thread flooding more difficult.

11 years agoURL fix.
Eric S. Raymond [Sun, 7 Oct 2012 08:18:45 +0000 (04:18 -0400)]
URL fix.

11 years agoMakup fix.
Eric S. Raymond [Sun, 7 Oct 2012 08:08:41 +0000 (04:08 -0400)]
Makup fix.

11 years agoMarkup amd thinko fixes.
Eric S. Raymond [Sun, 7 Oct 2012 08:07:40 +0000 (04:07 -0400)]
Markup amd thinko fixes.

11 years agoProperly \n-terminate each send.
Eric S. Raymond [Sun, 7 Oct 2012 07:26:47 +0000 (03:26 -0400)]
Properly \n-terminate each send.

This simple change is slightly wrong in a way that IRC servers hide -
strictly speaking we should not append a '\n' to the very last
segment.

11 years agoSome feature enhancements for irk.
Eric S. Raymond [Sun, 7 Oct 2012 07:23:33 +0000 (03:23 -0400)]
Some feature enhancements for irk.

11 years agopylint cleanup.
Eric S. Raymond [Sun, 7 Oct 2012 07:09:10 +0000 (03:09 -0400)]
pylint cleanup.

11 years agoMerge commit 'refs/merge-requests/12' of git://gitorious.org/irker/irker into merge...
Eric S. Raymond [Sun, 7 Oct 2012 06:46:25 +0000 (02:46 -0400)]
Merge commit 'refs/merge-requests/12' of git://gitorious.org/irker/irker into merge-requests/12

11 years agoMake idle loop work correctly with Eventlet and plain threads, with no 100% CPU busy...
Peter Scott [Sun, 7 Oct 2012 05:23:26 +0000 (22:23 -0700)]
Make idle loop work correctly with Eventlet and plain threads, with no 100% CPU busy loop.

11 years agoGood thing we do a smoke test before release. 1.8
Eric S. Raymond [Sun, 7 Oct 2012 01:59:47 +0000 (21:59 -0400)]
Good thing we do a smoke test before release.

11 years agoVersion bump for release.
Eric S. Raymond [Sun, 7 Oct 2012 01:57:03 +0000 (21:57 -0400)]
Version bump for release.

11 years agoFix green threads
Laurent Bachelier [Sat, 6 Oct 2012 18:10:54 +0000 (20:10 +0200)]
Fix green threads

Nothing would happen in green threads mode.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoSending to nick URLs is now supported.
Eric S. Raymond [Sun, 7 Oct 2012 01:00:18 +0000 (21:00 -0400)]
Sending to nick URLs is now supported.

11 years agoRevert "Make the main process idle loop slightly less expensive."
Eric S. Raymond [Sat, 6 Oct 2012 16:54:01 +0000 (12:54 -0400)]
Revert "Make the main process idle loop slightly less expensive."

sigpause() doesn't work with greenlets.

11 years agoRemove a dependecy on netcat.
Eric S. Raymond [Sat, 6 Oct 2012 11:00:07 +0000 (07:00 -0400)]
Remove a dependecy on netcat.

11 years agoEnable us to see stack traces from with delivery threads when debuglvl > 0.
Eric S. Raymond [Sat, 6 Oct 2012 09:05:32 +0000 (05:05 -0400)]
Enable us to see stack traces from with delivery threads when debuglvl > 0.

11 years agobasestring makes the isinstance checks work.
Eric S. Raymond [Sat, 6 Oct 2012 08:49:00 +0000 (04:49 -0400)]
basestring makes the isinstance checks work.

11 years agoActually get tinyfier from the config variables.
Eric S. Raymond [Sat, 6 Oct 2012 07:59:55 +0000 (03:59 -0400)]
Actually get tinyfier from the config variables.