hg notify error

Matt Mackall mpm at selenic.com
Mon Dec 22 19:12:40 UTC 2014


On Mon, 2014-12-22 at 18:23 +0000, Becker, Mischa J wrote:
> > -----Original Message-----
> > From: Mercurial [mailto:mercurial-bounces at selenic.com] On Behalf Of John
> > Turner
> > Sent: Monday, December 22, 2014 10:19 AM
> > To: mercurial
> > Subject: hg notify error
> >
> > I attempted a push to my central repo and the notify hook raised the
> > following error:
> >    changegroup.notify hook raised an exception:
> >   invalid literal for int() with base 10: '300 # max lines of diffs to
> > include (0=none, -1=all)'

I think that's pretty clear: the text "300 # max lines of diffs..." is
not an integer. So where is it getting that text?

That text last appeared in Mercurial's help in 1.9 (July 2011):

http://www.selenic.com/hg/file/de9eb6b1da4f/hgext/notify.py#l34

But as far as I can tell, we've never actually accepted trailing
comments on config items, so anyone who copied this into their config
would get this error.

At any rate, it's not coming from Mercurial any more, which means it's
coming from your machine somewhere. You might be able to spot it with
'hg config --debug'.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list