[issue1547] notify extension throws exception with diffstat and serve

benallard mercurial-bugs at selenic.com
Tue Mar 10 08:18:21 CDT 2009


New submission from benallard <benoit at aeteurope.nl>:

On my freshly updated server (1.2), the notify extension does not work anymore:

error: changegroup.notify hook raised an exception: 'cStringIO.StringO' object
has no attribute 'fileno'

The culprit is:

http://selenic.com/hg/index.cgi/rev/4949729ee9ee (python implementation of diffstat)

The relevant parts of my notify.rc follows:

[extensions]
hgext.notify =

[hooks]
changegroup.notify = python:hgext.notify.hook

[notify]
source = serve
test = false
config = /var/hg/repos/notify/notify.conf
diffstat = true
maxdiff = 0
strip = 4
template = \nchangeset: {rev}:{node|short}\nuser: {author}\ndetails:
{baseurl}{webroot}?cmd=changeset;node={node|short}\ndescription:\n{desc}\n

----------
messages: 8790
nosy: benallard
priority: bug
status: unread
title: notify extension throws exception with diffstat and serve
topic: 1.2, diff, hgweb

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1547>
____________________________________________________



More information about the Mercurial-devel mailing list