Comments
Patch
@@ -22,8 +22,9 @@ from mercurial import revset
# __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__ = []
+commands = {}
class webcommand(object):
"""Decorator used to register a web command handler.
@@ -41,8 +42,9 @@ class webcommand(object):
self.name = name
def __call__(self, func):
__all__.append(self.name)
+ commands[self.name] = func
return func
@webcommand('log')
def log(web, req, tmpl):