Skip to content
Snippets Groups Projects
Commit d420ac09 authored by Benoit Boissinot's avatar Benoit Boissinot
Browse files

setup.py: ignore warnings from obsolete

Fix version detection with recent hg versions.
parent 3f59cb1c
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,8 @@ ...@@ -149,7 +149,8 @@
# a missing __init__.py in mercurial/locale, we also ignore that. # a missing __init__.py in mercurial/locale, we also ignore that.
err = [e for e in err.splitlines() err = [e for e in err.splitlines()
if not e.startswith(b('Not trusting file')) \ 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: if err:
print >> sys.stderr, "stderr from '%s':" % (' '.join(cmd)) print >> sys.stderr, "stderr from '%s':" % (' '.join(cmd))
print >> sys.stderr, '\n'.join([' ' + e for e in err]) print >> sys.stderr, '\n'.join([' ' + e for e in err])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment