Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
d36440d84328
Commit
d36440d84328
authored
10 years ago
by
Mads Kiilerich
Browse files
Options
Downloads
Patches
Plain Diff
httppeer: reintroduce _abort that accidentally was removed in
167047ba3cfa
Including the missing test coverage that would have caught it.
parent
bcfd44abad93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mercurial/httppeer.py
+3
-0
3 additions, 0 deletions
mercurial/httppeer.py
tests/test-identify.t
+6
-0
6 additions, 0 deletions
tests/test-identify.t
tests/test-ssh.t
+5
-0
5 additions, 0 deletions
tests/test-ssh.t
with
14 additions
and
0 deletions
mercurial/httppeer.py
+
3
−
0
View file @
d36440d8
...
...
@@ -237,6 +237,9 @@
stream
=
self
.
_callstream
(
cmd
,
**
args
)
return
util
.
chunkbuffer
(
zgenerator
(
stream
))
def
_abort
(
self
,
exception
):
raise
exception
class
httpspeer
(
httppeer
):
def
__init__
(
self
,
ui
,
path
):
if
not
url
.
has_https
:
...
...
This diff is collapsed.
Click to expand it.
tests/test-identify.t
+
6
−
0
View file @
d36440d8
...
...
@@ -109,6 +109,12 @@
$ hg id --bookmarks -r . http://localhost:$HGPORT1/
Y Z
test invalid lookup
$ hg id -r noNoNO http://localhost:$HGPORT1/
abort: unknown revision
'
noNoNO
'
!
[255]
Make sure we do not obscure unknown requires file entries (issue2649)
$ echo fake >> .hg/requires
...
...
This diff is collapsed.
Click to expand it.
tests/test-ssh.t
+
5
−
0
View file @
d36440d8
...
...
@@ -284,6 +284,10 @@
$
hg
id
--
ssh
"
python
\"
$TESTDIR
/dummyssh
\"
"
"
ssh://user
@dummy
/a repo
"
73649e48688
a
$
hg
id
--
ssh
"
python
\"
$TESTDIR
/dummyssh
\"
"
"
ssh://user
@dummy
/a repo#noNoNO
"
abort:
unknown
revision
'
noNoNO
'
!
[
255
]
Test
(
non
-
)
escaping
of
remote
paths
with
spaces
when
cloning
(
issue3145
):
$
hg
clone
--
ssh
"
python
\"
$TESTDIR
/dummyssh
\"
"
"
ssh://user
@dummy
/a repo
"
...
...
@@ -382,3 +386,4 @@
Got
arguments
1
:
user@dummy
2
:
hg
-
R
'
a repo
'
serve
--
stdio
Got
arguments
1
:
user@dummy
2
:
hg
-
R
'
a repo
'
serve
--
stdio
Got
arguments
1
:
user@dummy
2
:
hg
-
R
'
a repo
'
serve
--
stdio
Got
arguments
1
:
user@dummy
2
:
hg
-
R
'
a repo
'
serve
--
stdio
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment