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

Patrick Mézard pmezard at gmail.com
Wed Nov 18 12:22:49 CST 2009


Sune Foldager a écrit :
> # 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.

In "src is not None" case, why do we copy the config items but not the environment variables, or why don't we do the opposite?

--
Patrick Mézard


More information about the Mercurial-devel mailing list