# HG changeset patch # User Thomas Arendsen Hein # Date 1125294166 -7200 # Node ID 8a39df05d2c18764ee56d4f2ff575e300ddb101b # Parent 4fffb3d84b7c794f9fd61088b07abf0f3fa6a0bd Documented passing list or dict instead of config file in hgwebdir.cgi diff --git a/hgwebdir.cgi b/hgwebdir.cgi --- a/hgwebdir.cgi +++ b/hgwebdir.cgi @@ -13,5 +13,8 @@ from mercurial import hgweb # virtual/path = /real/path # virtual/path = /real/path +# Alternatively you can pass a list of ('virtual/path', '/real/path') tuples +# or use a dictionary with entries like 'virtual/path': '/real/path' + h = hgweb.hgwebdir("hgweb.config") h.run()