Changeset - c35980ae7958
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2012-07-01 16:11:38
marcin@python-works.com
Don't always return action, raise an Exception if we cannot check what the action is
2 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/hooks.py
Show inline comments
 
@@ -90,7 +90,6 @@ def log_pull_action(ui, repo, **kwargs):
 
    :param ui:
 
    :param repo:
 
    """
 

	
 
    extras = dict(repo.ui.configitems('rhodecode_extras'))
 
    username = extras['username']
 
    repository = extras['repository']
rhodecode/lib/middleware/simplehg.py
Show inline comments
 
@@ -226,6 +226,9 @@ class SimpleHg(BaseVCSController):
 

	
 
        return 'pull'
 

	
 
        raise Exception('Unable to detect pull/push action !!'
 
                        'Are you using non standard command or client ?')
 

	
 
    def __inject_extras(self, repo_path, baseui, extras={}):
 
        """
 
        Injects some extra params into baseui instance
0 comments (0 inline, 0 general)