Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/sshserver.py @ 30567:b3a9ef3d30e8
protocol: declare transport protocol name
We add an attribute to the HTTP and SSH protocol implementations
identifying the transport so future patches can conditionally
expose capabilities on a per-transport basis.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 28 Nov 2016 20:46:59 -0800 |
parents | 2add671bf55b |
children | a150173da1c1 |
comparison
equal
deleted
inserted
replaced
30566:7c0c722d568d | 30567:b3a9ef3d30e8 |
---|---|
24 self.ui = ui | 24 self.ui = ui |
25 self.repo = repo | 25 self.repo = repo |
26 self.lock = None | 26 self.lock = None |
27 self.fin = ui.fin | 27 self.fin = ui.fin |
28 self.fout = ui.fout | 28 self.fout = ui.fout |
29 self.name = 'ssh' | |
29 | 30 |
30 hook.redirect(True) | 31 hook.redirect(True) |
31 ui.fout = repo.ui.fout = ui.ferr | 32 ui.fout = repo.ui.fout = ui.ferr |
32 | 33 |
33 # Prevent insertion/deletion of CRs | 34 # Prevent insertion/deletion of CRs |