Mercurial > hg-stable
comparison tests/test-check-interfaces.py @ 35976:f8f034344b39
sshpeer: clean up API for sshpeer.__init__ (API)
Our refactoring left the state of sshpeer.__init__ in a poor
state. "create" was no longer used. Process/pipe arguments were
passed poorly. "name" was really a URL.
This commit cleans all that up.
.. api::
sshpeer.sshpeer.__init__ now receives arguments describing an
existing connection instead of creating a connection itself.
Differential Revision: https://phab.mercurial-scm.org/D2032
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 05 Feb 2018 14:17:24 -0800 |
parents | 00b9e26d727b |
children | 80a2b8ae42a1 |
comparison
equal
deleted
inserted
replaced
35975:00b9e26d727b | 35976:f8f034344b39 |
---|---|
67 ui = uimod.ui() | 67 ui = uimod.ui() |
68 | 68 |
69 checkobject(badpeer()) | 69 checkobject(badpeer()) |
70 checkobject(httppeer.httppeer(ui, 'http://localhost')) | 70 checkobject(httppeer.httppeer(ui, 'http://localhost')) |
71 checkobject(localrepo.localpeer(dummyrepo())) | 71 checkobject(localrepo.localpeer(dummyrepo())) |
72 checkobject(testingsshpeer(ui, 'ssh://localhost/foo', False, | 72 checkobject(testingsshpeer(ui, 'ssh://localhost/foo', None, None, None, |
73 (None, None, None, None))) | 73 None)) |
74 checkobject(bundlerepo.bundlepeer(dummyrepo())) | 74 checkobject(bundlerepo.bundlepeer(dummyrepo())) |
75 checkobject(statichttprepo.statichttppeer(dummyrepo())) | 75 checkobject(statichttprepo.statichttppeer(dummyrepo())) |
76 checkobject(unionrepo.unionpeer(dummyrepo())) | 76 checkobject(unionrepo.unionpeer(dummyrepo())) |
77 | 77 |
78 main() | 78 main() |