Changeset - fe93c67afc4d
[Not reviewed]
stable
0 3 0
Mads Kiilerich - 6 years ago 2020-01-25 21:04:50
mads@kiilerich.com
Grafted from: 2b8311283af9
ssh: use BaseSshHandler.__init__

This is the right thing to do ... and will be useful very soon.
3 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/backends/git/ssh.py
Show inline comments
 
@@ -61,7 +61,7 @@ class GitSshHandler(BaseSshHandler):
 
        return None
 

	
 
    def __init__(self, repo_name, verb):
 
        self.repo_name = repo_name
 
        BaseSshHandler.__init__(self, repo_name)
 
        self.verb = verb
 

	
 
    def _serve(self):
kallithea/lib/vcs/backends/hg/ssh.py
Show inline comments
 
@@ -57,9 +57,6 @@ class MercurialSshHandler(BaseSshHandler
 

	
 
        return None
 

	
 
    def __init__(self, repo_name):
 
        self.repo_name = repo_name
 

	
 
    def _serve(self):
 
        # Note: we want a repo with config based on .hg/hgrc and can thus not use self.db_repo.scm_instance._repo.ui
 
        baseui = make_ui(repo_path=self.db_repo.repo_full_path)
kallithea/lib/vcs/backends/ssh.py
Show inline comments
 
@@ -55,6 +55,9 @@ class BaseSshHandler(object):
 
        """
 
        raise NotImplementedError
 

	
 
    def __init__(self, repo_name):
 
        self.repo_name = repo_name
 

	
 
    def serve(self, user_id, key_id, client_ip):
 
        """Verify basic sanity of the repository, and that the user is
 
        valid and has access - then serve the native VCS protocol for
0 comments (0 inline, 0 general)