##// END OF EJS Templates
Don't always return action, raise an Exception if we cannot check what the action is
marcink -
r2525:c35980ae beta
parent child Browse files
Show More
@@ -90,7 +90,6 def log_pull_action(ui, repo, **kwargs):
90 :param ui:
90 :param ui:
91 :param repo:
91 :param repo:
92 """
92 """
93
94 extras = dict(repo.ui.configitems('rhodecode_extras'))
93 extras = dict(repo.ui.configitems('rhodecode_extras'))
95 username = extras['username']
94 username = extras['username']
96 repository = extras['repository']
95 repository = extras['repository']
@@ -226,6 +226,9 class SimpleHg(BaseVCSController):
226
226
227 return 'pull'
227 return 'pull'
228
228
229 raise Exception('Unable to detect pull/push action !!'
230 'Are you using non standard command or client ?')
231
229 def __inject_extras(self, repo_path, baseui, extras={}):
232 def __inject_extras(self, repo_path, baseui, extras={}):
230 """
233 """
231 Injects some extra params into baseui instance
234 Injects some extra params into baseui instance
General Comments 0
You need to be logged in to leave comments. Login now