Show More
@@ -237,6 +237,9 b' class httppeer(wireproto.wirepeer):' | |||||
237 | stream = self._callstream(cmd, **args) |
|
237 | stream = self._callstream(cmd, **args) | |
238 | return util.chunkbuffer(zgenerator(stream)) |
|
238 | return util.chunkbuffer(zgenerator(stream)) | |
239 |
|
239 | |||
|
240 | def _abort(self, exception): | |||
|
241 | raise exception | |||
|
242 | ||||
240 | class httpspeer(httppeer): |
|
243 | class httpspeer(httppeer): | |
241 | def __init__(self, ui, path): |
|
244 | def __init__(self, ui, path): | |
242 | if not url.has_https: |
|
245 | if not url.has_https: |
@@ -109,6 +109,12 b' test remote identify with bookmarks' | |||||
109 | $ hg id --bookmarks -r . http://localhost:$HGPORT1/ |
|
109 | $ hg id --bookmarks -r . http://localhost:$HGPORT1/ | |
110 | Y Z |
|
110 | Y Z | |
111 |
|
111 | |||
|
112 | test invalid lookup | |||
|
113 | ||||
|
114 | $ hg id -r noNoNO http://localhost:$HGPORT1/ | |||
|
115 | abort: unknown revision 'noNoNO'! | |||
|
116 | [255] | |||
|
117 | ||||
112 | Make sure we do not obscure unknown requires file entries (issue2649) |
|
118 | Make sure we do not obscure unknown requires file entries (issue2649) | |
113 |
|
119 | |||
114 | $ echo fake >> .hg/requires |
|
120 | $ echo fake >> .hg/requires |
@@ -284,6 +284,10 b' Test remote paths with spaces (issue2983' | |||||
284 | $ hg id --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" |
|
284 | $ hg id --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
285 | 73649e48688a |
|
285 | 73649e48688a | |
286 |
|
286 | |||
|
287 | $ hg id --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo#noNoNO" | |||
|
288 | abort: unknown revision 'noNoNO'! | |||
|
289 | [255] | |||
|
290 | ||||
287 | Test (non-)escaping of remote paths with spaces when cloning (issue3145): |
|
291 | Test (non-)escaping of remote paths with spaces when cloning (issue3145): | |
288 |
|
292 | |||
289 | $ hg clone --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" |
|
293 | $ hg clone --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" | |
@@ -382,3 +386,4 b' Test hg-ssh in read-only mode:' | |||||
382 | Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio |
|
386 | Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio | |
383 | Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio |
|
387 | Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio | |
384 | Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio |
|
388 | Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio | |
|
389 | Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio |
General Comments 0
You need to be logged in to leave comments.
Login now