Show More
@@ -29,6 +29,8 b' class sshrepository(wireproto.wirereposi' | |||||
29 | self._abort(error.RepoError(_("couldn't parse location %s") % path)) |
|
29 | self._abort(error.RepoError(_("couldn't parse location %s") % path)) | |
30 |
|
30 | |||
31 | self.user = m.group(2) |
|
31 | self.user = m.group(2) | |
|
32 | if self.user and ':' in self.user: | |||
|
33 | self._abort(error.RepoError(_("password in URL not supported"))) | |||
32 | self.host = m.group(3) |
|
34 | self.host = m.group(3) | |
33 | self.port = m.group(5) |
|
35 | self.port = m.group(5) | |
34 | self.path = m.group(7) or "." |
|
36 | self.path = m.group(7) or "." |
@@ -269,6 +269,13 b' push should succeed even though it has a' | |||||
269 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
269 | date: Thu Jan 01 00:00:00 1970 +0000 | |
270 | summary: z |
|
270 | summary: z | |
271 |
|
271 | |||
|
272 | ||||
|
273 | passwords in ssh urls are not supported | |||
|
274 | ||||
|
275 | $ hg push ssh://user:erroneouspwd@dummy/remote | |||
|
276 | abort: password in URL not supported! | |||
|
277 | [255] | |||
|
278 | ||||
272 | $ cd .. |
|
279 | $ cd .. | |
273 | $ cat dummylog |
|
280 | $ cat dummylog | |
274 | Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio |
|
281 | Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio |
General Comments 0
You need to be logged in to leave comments.
Login now