setup.py: ignore warnings from obsolete
Fix version detection with recent hg versions.
--- a/setup.py Mon Mar 04 10:13:28 2013 +0100
+++ b/setup.py Mon Mar 04 10:05:52 2013 +0100
@@ -149,7 +149,8 @@
# 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])