irker.git
11 years agoShut up, pylint!
Eric S. Raymond [Fri, 17 May 2013 13:25:12 +0000 (09:25 -0400)]
Shut up, pylint!

11 years agoDcumentation update.
Eric S. Raymond [Fri, 17 May 2013 13:10:56 +0000 (09:10 -0400)]
Dcumentation update.

11 years agoAdd the 'email' variable to the irkerhook manpage
Alexander van Gessel [Wed, 15 May 2013 15:34:15 +0000 (17:34 +0200)]
Add the 'email' variable to the irkerhook manpage

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoImplement email as a delivery method
Alexander van Gessel [Wed, 15 May 2013 15:34:03 +0000 (17:34 +0200)]
Implement email as a delivery method

This delivery method exists for the benefit of sourceforge,
which does not allow hooks to access the network except through email.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoVersion bumpp for 1.20 release. 1.20
Eric S. Raymond [Fri, 17 May 2013 12:49:26 +0000 (08:49 -0400)]
Version bumpp for 1.20 release.

11 years agoCompatibility with python 2.4 (if simplejson is present)
Alexander van Gessel [Wed, 15 May 2013 12:50:59 +0000 (14:50 +0200)]
Compatibility with python 2.4 (if simplejson is present)

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoIncrease anti-flood-delay from 0.5 to 1 second.
Alexander van Gessel [Wed, 15 May 2013 12:50:45 +0000 (14:50 +0200)]
Increase anti-flood-delay from 0.5 to 1 second.

With a delay of 0.5 seconds, freenode starts dropping messages
bunched in large groups after about 18 of them.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoVersion bump for 1.9 release. 1.19
Eric S. Raymond [Sun, 5 May 2013 18:25:31 +0000 (14:25 -0400)]
Version bump for 1.9 release.

11 years agoWrote irkerd usage
William Orr [Wed, 24 Apr 2013 05:11:12 +0000 (01:11 -0400)]
Wrote irkerd usage

- invalid options should print usage

11 years agoirkerd -V shouldn't take an argument
William Orr [Wed, 24 Apr 2013 05:06:42 +0000 (01:06 -0400)]
irkerd -V shouldn't take an argument

11 years agoVersion bump for 1.18 release. 1.18
Eric S. Raymond [Wed, 17 Apr 2013 00:57:05 +0000 (20:57 -0400)]
Version bump for 1.18 release.

11 years agoDo not write to logfile if None
Laurent Bachelier [Tue, 16 Apr 2013 21:22:47 +0000 (23:22 +0200)]
Do not write to logfile if None

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoPython 2.5 compatibility
Laurent Bachelier [Tue, 16 Apr 2013 21:22:46 +0000 (23:22 +0200)]
Python 2.5 compatibility

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoDocument new options properly.
Eric S. Raymond [Tue, 16 Apr 2013 21:03:00 +0000 (17:03 -0400)]
Document new options properly.

11 years agoAppend mode is required if we're loogging to disk.
Eric S. Raymond [Tue, 16 Apr 2013 19:50:45 +0000 (15:50 -0400)]
Append mode is required if we're loogging to disk.

11 years agoPrevent actually sending an empty privmsg.
Eric S. Raymond [Tue, 16 Apr 2013 11:57:59 +0000 (07:57 -0400)]
Prevent actually sending an empty privmsg.

11 years agoAdded -p option.
Eric S. Raymond [Tue, 16 Apr 2013 11:42:39 +0000 (07:42 -0400)]
Added -p option.

11 years agoAdded option to force nick.
Eric S. Raymond [Tue, 16 Apr 2013 11:19:55 +0000 (07:19 -0400)]
Added option to force nick.

11 years agoTypo fixes.
Eric S. Raymond [Tue, 16 Apr 2013 10:41:36 +0000 (06:41 -0400)]
Typo fixes.

11 years agoAdded - option; irker ca now be used as a channel monitor.
Eric S. Raymond [Tue, 16 Apr 2013 10:27:56 +0000 (06:27 -0400)]
Added - option; irker ca now be used as a channel monitor.

11 years agoExtract commit date for Mercurial
Laurent Bachelier [Sun, 17 Feb 2013 00:57:56 +0000 (01:57 +0100)]
Extract commit date for Mercurial

Same as Git, without the last part about timezone though.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoExtract commit date for SVN
Laurent Bachelier [Sun, 17 Feb 2013 00:57:55 +0000 (01:57 +0100)]
Extract commit date for SVN

This gives the same date format as the Git extractor

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
11 years agoExtract commit dates
Laurent Bachelier [Sun, 17 Feb 2013 00:57:54 +0000 (01:57 +0100)]
Extract commit dates

So they can be handled by the filter hook.
For now, only git is handled.

Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
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
ä

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

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

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

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

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

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

12 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".

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

12 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>
12 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>
12 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>
12 years agoAvoid a portability problem.
Eric S. Raymond [Thu, 25 Oct 2012 11:34:32 +0000 (07:34 -0400)]
Avoid a portability problem.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

12 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>
12 years agoNews update.
Eric S. Raymond [Tue, 9 Oct 2012 01:26:34 +0000 (21:26 -0400)]
News update.

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

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

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

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

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

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

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

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

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

12 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

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

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

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

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

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

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

12 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

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

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

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

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

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

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

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