##// 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 b' def log_pull_action(ui, repo, **kwargs):'
90 90 :param ui:
91 91 :param repo:
92 92 """
93
94 93 extras = dict(repo.ui.configitems('rhodecode_extras'))
95 94 username = extras['username']
96 95 repository = extras['repository']
@@ -224,7 +224,10 b' class SimpleHg(BaseVCSController):'
224 224 if cmd in mapping:
225 225 return mapping[cmd]
226 226
227 return 'pull'
227 return 'pull'
228
229 raise Exception('Unable to detect pull/push action !!'
230 'Are you using non standard command or client ?')
228 231
229 232 def __inject_extras(self, repo_path, baseui, extras={}):
230 233 """
General Comments 0
You need to be logged in to leave comments. Login now