Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
hg-git
Commits
afdeb1010d17
Commit
afdeb101
authored
Dec 09, 2019
by
Pierre Augier
Browse files
Try doctest with readonly=True
parent
4589821f6cb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
hggit/git_handler.py
View file @
afdeb101
...
...
@@ -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('http
s
://
github.com/schacon/hg-git.git', readonly=True
)
>>> print
(
isinstance(client, HttpGitClient)
)
True
...
...
@@ -1682,4 +1682,4 @@
True
>>> print
url
http://
fqdn.com/tes
t.git
>>> print
(
url
)
http
s
://
github.com/schacon/hg-gi
t.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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment