Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
26131:0a9009d56fea | 26132:9df8c729e2e7 |
---|---|
77 path = '/' + path | 77 path = '/' + path |
78 | 78 |
79 return name, str(port), path | 79 return name, str(port), path |
80 | 80 |
81 class hgwebdir(object): | 81 class hgwebdir(object): |
82 """HTTP server for multiple repositories. | |
83 | |
84 Given a configuration, different repositories will be served depending | |
85 on the request path. | |
86 | |
87 Instances are typically used as WSGI applications. | |
88 """ | |
82 def __init__(self, conf, baseui=None): | 89 def __init__(self, conf, baseui=None): |
83 self.conf = conf | 90 self.conf = conf |
84 self.baseui = baseui | 91 self.baseui = baseui |
85 self.ui = None | 92 self.ui = None |
86 self.lastrefresh = 0 | 93 self.lastrefresh = 0 |