also looks good On Wed, Jun 27, 2018 at 8:50 AM, Augie Fackler <r...@durin42.com> wrote:
> # HG changeset patch > # User Augie Fackler <au...@google.com> > # Date 1529932907 14400 > # Mon Jun 25 09:21:47 2018 -0400 > # Branch stable > # Node ID af7d21e1e44c1bb756af28b5978d3f7ee7d50eda > # Parent 0b63a6743010dfdbf8a8154186e119949bdaa1cc > hghave: don't claim we have `tic` if it's NetBSD's binary (issue5698) > > test-status-color.t fails with different output because of mismatches > between how `tic` behaves from NetBSD's base system and ncurses' > verison (if I understand the bug right). The bug suggested using -V to > avoid the issue, so we'll do that. > > diff --git a/tests/hghave.py b/tests/hghave.py > --- a/tests/hghave.py > +++ b/tests/hghave.py > @@ -545,7 +545,11 @@ def has_tic(): > try: > import curses > curses.COLOR_BLUE > - return matchoutput('test -x "`which tic`"', br'') > + if not matchoutput('test -x "`which tic`"', br''): > + return False > + # We have a tic, but make sure it's not the NetBSD system one > + # which doesn't pass test-status-color.t. > + return not matchoutput('tic -V 2>&1', br'unknown option') > except ImportError: > return False > > _______________________________________________ > Mercurial-devel mailing list > Mercurial-devel@mercurial-scm.org > https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel >
_______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel