[PATCH] color: add support for terminfo-based attributes and color

Matt Mackall mpm at selenic.com
Thu Apr 21 13:37:26 CDT 2011


On Thu, 2011-04-21 at 09:05 -0700, Danek Duvall wrote:
> Matt Mackall wrote:
> 
> > On Fri, 2011-03-18 at 22:49 -0700, Brodie Rao wrote:
> >
> > > Does this affect the test suite at all?
> > 
> > Yeah, this breaks tests a lot. On my laptop, it changes lots of the
> > escape codes or gives a traceback with:
> > 
> > +      return curses.tigetstr(val)
> > +  _curses.error: must call (at least) setupterm() first
> > 
> > On the older RHEL box with Py2.4 that I do most of my tests on, I get
> > more serious breakage:
> > 
> > +      curses.setupterm()
> > +  _curses.error: setupterm: could not find terminfo database
> > 
> > Breaks something like 11 tests.
> 
> Sorry for the delay; my free time comes in spurts.
> 
> I've fixed the stack traces, but there are still five tests which are
> failing for me because the test expects ansi color sequences but is getting
> the terminfo sequences.
> 
> A few of the tests explicitly set ansi color with a --config option.  I
> could do the same for the remaining five tests, but Brodie mentioned
> hghave, which I could investigate if you preferred that route.

We should probably have at least one terminfo-based test.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list