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
mercurial
hg-git
Commits
0fcbf1a169bb
Commit
0fcbf1a1
authored
Dec 09, 2019
by
Pierre Augier
Browse files
Try doctest with readonly=True
Rebased and modified by Manual Jacob.
parent
ed427c559654
Pipeline
#3581
passed with stage
in 15 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
hggit/git_handler.py
View file @
0fcbf1a1
...
...
@@ -1676,7 +1676,7 @@
>>> mockrepo.path = ''
>>> g = GitHandler(mockrepo, ui())
>>> tp = g.get_transport_and_path
>>> client, url = tp('http://
fqdn.com/test.git'
)
>>> client, url = tp('http
s
://
github.com/schacon/hg-git.git', readonly=True
)
>>> print isinstance(client, HttpGitClient)
True
>>> print url
...
...
@@ -1680,7 +1680,7 @@
>>> print isinstance(client, HttpGitClient)
True
>>> print url
http://
fqdn.com/tes
t.git
http
s
://
github.com/schacon/hg-gi
t.git
>>> client, url = tp('git@fqdn.com:user/repo.git')
>>> print isinstance(client, SSHGitClient)
True
...
...
Write
Preview
Supports
Markdown
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