Commit afdeb101 authored by Pierre Augier's avatar Pierre Augier
Browse files

Try doctest with readonly=True

parent 4589821f6cb0
......@@ -1677,6 +1677,6 @@
>>> mockrepo.path = ''
>>> g = GitHandler(mockrepo, ui())
>>> tp = g.get_transport_and_path
>>> client, url = tp('http://fqdn.com/test.git')
>>> print isinstance(client, HttpGitClient)
>>> client, url = tp('https://github.com/schacon/hg-git.git', readonly=True)
>>> print(isinstance(client, HttpGitClient))
True
......@@ -1682,4 +1682,4 @@
True
>>> print url
http://fqdn.com/test.git
>>> print(url)
https://github.com/schacon/hg-git.git
>>> client, url = tp('git@fqdn.com:user/repo.git')
......@@ -1685,3 +1685,3 @@
>>> client, url = tp('git@fqdn.com:user/repo.git')
>>> print isinstance(client, SSHGitClient)
>>> print(isinstance(client, SSHGitClient))
True
......@@ -1687,3 +1687,3 @@
True
>>> print url
>>> print(url)
user/repo.git
......@@ -1689,5 +1689,5 @@
user/repo.git
>>> print client.host
>>> print(client.host)
git@fqdn.com
"""
# pass hg's ui.ssh config to dulwich
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment