[PATCH RFC-STABLE] hg: improve error message when no `mercurial.util.setbinary` function exists

Pierre-Yves David pierre-yves.david at logilab.fr
Wed May 9 12:18:56 CDT 2012


On Fri, May 04, 2012 at 11:38:17AM -0500, Matt Mackall wrote:
> On Fri, 2012-05-04 at 14:26 +0200, pierre-yves.david at logilab.fr wrote:
> > # HG changeset patch
> > # User Pierre-Yves David <pierre-yves.david at logilab.fr>
> > # Date 1336133022 -7200
> > # Branch stable
> > # Node ID 9450905de257e1ed09e1855ede0305567cf07b51
> > # Parent  91323a78aac252b630144f66e1039321cd41c9ef
> > hg: improve error message when no `mercurial.util.setbinary` function exists
> > 
> > When newer binary is used with an older mercurial library, hg invocation fails
> > with an AttributeError python traceback.
> > 
> > Such error is common when people misconfigured their PYTHONPATH variable and use
> > an old system wide library with a newer executable in PATH.
> 
> How does this happen with @LIBDIR@? Is @LIBDIR@ not getting set?

Good question. this is a fairly common error around here. I'll wait for the new occurence to happen.

-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120509/ac07a5bf/attachment.pgp>


More information about the Mercurial-devel mailing list