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

Sune Foldager cryo at cyanite.org
Thu Nov 19 03:38:32 CST 2009


Matt Mackall wrote:
> 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.

Pushed to crew as 38170eeed18c (with an added comment).

/Sune


More information about the Mercurial-devel mailing list