diff mercurial/hgweb/hgwebdir_mod.py @ 26132:9df8c729e2e7

hgweb: add some documentation It took longer than I wanted to grok how the various parts of hgweb worked. So I added some class and method documentation to help whoever hacks on this next.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 22 Aug 2015 13:58:59 -0700
parents 06320fb11699
children 4b0fc75f9403
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Tue Sep 01 23:35:06 2015 +0800
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sat Aug 22 13:58:59 2015 -0700
@@ -79,6 +79,13 @@
     return name, str(port), path
 
 class hgwebdir(object):
+    """HTTP server for multiple repositories.
+
+    Given a configuration, different repositories will be served depending
+    on the request path.
+
+    Instances are typically used as WSGI applications.
+    """
     def __init__(self, conf, baseui=None):
         self.conf = conf
         self.baseui = baseui