Changeset - 972ad33c5610
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 13 years ago 2013-05-08 17:43:59
marcin@python-works.com
removed duplicate code that set os.environ['RC_SCM_DATA']
this was done via __inject_extras anyway
2 files changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/middleware/simplegit.py
Show inline comments
 
@@ -219,14 +219,13 @@ class SimpleGit(BaseVCSController):
 
                            environ=environ, action=action,
 
                            repo=repo_name, user_id=user.user_id
 
                       )
 
            # store the make_lock for later evaluation in hooks
 
            extras.update({'make_lock': make_lock,
 
                           'locked_by': locked_by})
 
        # set the environ variables for this request
 
        os.environ['RC_SCM_DATA'] = json.dumps(extras)
 

	
 
        fix_PATH()
 
        log.debug('HOOKS extras is %s' % extras)
 
        baseui = make_ui('db')
 
        self.__inject_extras(repo_path, baseui, extras)
 

	
 
        try:
rhodecode/lib/middleware/simplehg.py
Show inline comments
 
@@ -182,14 +182,12 @@ class SimpleHg(BaseVCSController):
 
                            repo=repo_name, user_id=user.user_id
 
                       )
 
            # store the make_lock for later evaluation in hooks
 
            extras.update({'make_lock': make_lock,
 
                           'locked_by': locked_by})
 

	
 
        # set the environ variables for this request
 
        os.environ['RC_SCM_DATA'] = json.dumps(extras)
 
        fix_PATH()
 
        log.debug('HOOKS extras is %s' % extras)
 
        baseui = make_ui('db')
 
        self.__inject_extras(repo_path, baseui, extras)
 

	
 
        try:
0 comments (0 inline, 0 general)