# HG changeset patch # User Benoit Boissinot # Date 2013-03-04 09:05:52 # Node ID d420ac09f866faca827abd9c65f494e01d53e3c6 # Parent 3f59cb1ccc73671b5aaf9f91eef2a466be1ff1e2 setup.py: ignore warnings from obsolete Fix version detection with recent hg versions. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -149,7 +149,8 @@ def runhg(cmd, env): # a missing __init__.py in mercurial/locale, we also ignore that. err = [e for e in err.splitlines() if not e.startswith(b('Not trusting file')) \ - and not e.startswith(b('warning: Not importing'))] + and not e.startswith(b('warning: Not importing')) \ + and not e.startswith(b('obsolete feature not enabled'))] if err: print >> sys.stderr, "stderr from '%s':" % (' '.join(cmd)) print >> sys.stderr, '\n'.join([' ' + e for e in err])