setup: filter out devel-warn messages from system hg
If we're going to use the user's installed and configured hg command
(which we do since 8b20338b989e), we should prevent devel-warn messages
from interfering with locating it.
--- a/setup.py Mon Oct 23 21:30:59 2017 -0500
+++ b/setup.py Mon Oct 23 22:13:59 2017 -0500
@@ -218,7 +218,8 @@
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'obsolete feature not enabled'))]
+ and not e.startswith(b'obsolete feature not enabled')
+ and not e.startswith(b'devel-warn:'))]
return b'\n'.join(b' ' + e for e in err)
def findhg():