[PATCH 1 of 1] ui: add environ property to access os.environ or wsgirequest.environ

Matt Mackall mpm at selenic.com
Wed Nov 18 11:58:05 CST 2009


On Wed, 2009-11-18 at 11:09 +0100, Sune Foldager wrote:
> # HG changeset patch
> # User Sune Foldager <cryo at cyanite.org>
> # Date 1258537090 -3600
> # Node ID baa71bc536e9dd50e33f8e50dce7684d6dd08e76
> # Parent  d266aa7606ce82fa926a1d3389453d7cb7b8f200
> ui: add environ property to access os.environ or wsgirequest.environ
> 
> The property returns os.environ by default, and is propagted by
> ui.copy. During hgweb processing, ui.environ is set to the proper
> WSGI-request environment, as contained in wsgirequest.environ. For
> CGI, this is the same as os.environ.

Looks good to me.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list