[PATCH 1 of 3] context: add hiddenstr

Matt Mackall mpm at selenic.com
Tue Jan 6 17:17:56 CST 2015


On Tue, 2015-01-06 at 10:47 +0100, Romain DEP. wrote:
> # HG changeset patch
> # User Sean Farley <sean.michael.farley at gmail.com>
> # Date 1420411211 -3600
> #      Sun Jan 04 23:40:11 2015 +0100
> # Node ID 7a73c8aa23c3d403008b7327de082567fc5705d2
> # Parent  42908c3275c63b7d2d6c871094c1e2c8f7ba31c8
> context: add hiddenstr

Please read:

http://markmail.org/message/ws7tpmlvjm26ivqt
http://mercurial.selenic.com/wiki/mpm/flow

> +    def hiddenstr(self):
> +        if self.hidden():
> +            return 'hidden'
> +        return 'visible'

This is a bit too trivial and narrow-use to be a good addition to the
context API.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list