setup: filter out devel-warn messages from system hg stable
authorKevin Bullock <kbullock+mercurial@ringworld.org>
Mon, 23 Oct 2017 22:13:59 -0500
branchstable
changeset 34923 a6a322193a02
parent 34922 d643848635de
child 34924 bfcd0d227972
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.
setup.py
--- 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():