Mercurial > kallithea
changeset 719:62c1fab8d29b beta
removed 'thank you..' message from simpleHG, it should be used in hooks.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 18 Nov 2010 19:23:39 +0100 |
parents | 7df3855bf6c7 |
children | 74975001a1af |
files | rhodecode/lib/middleware/simplehg.py |
diffstat | 1 files changed, 2 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplehg.py Thu Nov 18 19:21:24 2010 +0100 +++ b/rhodecode/lib/middleware/simplehg.py Thu Nov 18 19:23:39 2010 +0100 @@ -143,28 +143,9 @@ #invalidate cache on push if self.action == 'push': self.__invalidate_cache(repo_name) - messages = [] - messages.append('thank you for using rhodecode') - - return self.msg_wrapper(app, environ, start_response, messages) - else: - return app(environ, start_response) - + + return app(environ, start_response) - def msg_wrapper(self, app, environ, start_response, messages=[]): - """ - Wrapper for custom messages that come out of mercurial respond messages - is a list of messages that the user will see at the end of response - from merurial protocol actions that involves remote answers - :param app: - :param environ: - :param start_response: - """ - def custom_messages(msg_list): - for msg in msg_list: - yield msg + '\n' - org_response = app(environ, start_response) - return chain(org_response, custom_messages(messages)) def __make_app(self): hgserve = hgweb(str(self.repo_path), baseui=self.baseui)