mercurial/hgweb/protocol.py
changeset 5963 5be210afe1b8
parent 5915 d0576d065993
child 5993 948a41e77902
--- a/mercurial/hgweb/protocol.py	Mon Jan 28 13:42:40 2008 +0100
+++ b/mercurial/hgweb/protocol.py	Mon Jan 28 14:58:03 2008 +0100
@@ -10,6 +10,14 @@
 from mercurial.i18n import gettext as _
 from mercurial.node import *
 
+# __all__ is populated with the allowed commands. Be sure to add to it if
+# you're adding a new command, or the new command won't work.
+
+__all__ = [
+   'lookup', 'heads', 'branches', 'between', 'changegroup',
+   'changegroupsubset', 'capabilities', 'unbundle', 'stream_out',
+]
+
 def lookup(web, req):
     try:
         r = hex(web.repo.lookup(req.form['key'][0]))