Mercurial > hg-stable
comparison mercurial/sshrepo.py @ 3275:7ae37d99d47e
ssh: make the error message more clear, add a testcase
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 06 Oct 2006 16:24:14 +0200 |
parents | 75dcfe28da4a |
children | 8770b4870e22 |
comparison
equal
deleted
inserted
replaced
3274:e0cd1b98bf8d | 3275:7ae37d99d47e |
---|---|
68 if l: | 68 if l: |
69 ui.debug(_("remote: "), l) | 69 ui.debug(_("remote: "), l) |
70 lines.append(l) | 70 lines.append(l) |
71 max_noise -= 1 | 71 max_noise -= 1 |
72 else: | 72 else: |
73 raise hg.RepoError(_("no response from remote hg")) | 73 raise hg.RepoError(_("no suitable response from remote hg")) |
74 | 74 |
75 self.capabilities = () | 75 self.capabilities = () |
76 lines.reverse() | 76 lines.reverse() |
77 for l in lines: | 77 for l in lines: |
78 if l.startswith("capabilities:"): | 78 if l.startswith("capabilities:"): |