[PATCH 2 of 2 STABLE] setup.py: ignore warnings from obsolete

Benoit Boissinot benoit.boissinot at ens-lyon.org
Sat Mar 9 15:16:18 CST 2013


# HG changeset patch
# User Benoit Boissinot <benoit.boissinot at ens-lyon.org>
# Date 1362387952 -3600
#      Mon Mar 04 10:05:52 2013 +0100
# Branch stable
# Node ID d61d6dcb5b245247c7db076c4cf4acb13cf277d5
# Parent  229f531e76c296c4ea407a27ec53dac26d406425
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 @@
     # 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])


More information about the Mercurial-devel mailing list