##// END OF EJS Templates
Use UnexpectedOutput exception instead of RepoError in sshrepo, too.
Thomas Arendsen Hein -
r3766:58166524 default
parent child Browse files
Show More
@@ -121,7 +121,7 b' class sshrepository(remoterepository):'
121 try:
121 try:
122 l = int(l)
122 l = int(l)
123 except:
123 except:
124 self.raise_(hg.RepoError(_("unexpected response '%s'") % l))
124 self.raise_(util.UnexpectedOutput(_("unexpected response:"), l))
125 return r.read(l)
125 return r.read(l)
126
126
127 def lock(self):
127 def lock(self):
@@ -144,7 +144,7 b' class sshrepository(remoterepository):'
144 try:
144 try:
145 return map(bin, d[:-1].split(" "))
145 return map(bin, d[:-1].split(" "))
146 except:
146 except:
147 self.raise_(hg.RepoError(_("unexpected response '%s'") % (d[:400] + "...")))
147 self.raise_(util.UnexpectedOutput(_("unexpected response:"), d))
148
148
149 def branches(self, nodes):
149 def branches(self, nodes):
150 n = " ".join(map(hex, nodes))
150 n = " ".join(map(hex, nodes))
@@ -153,7 +153,7 b' class sshrepository(remoterepository):'
153 br = [ tuple(map(bin, b.split(" "))) for b in d.splitlines() ]
153 br = [ tuple(map(bin, b.split(" "))) for b in d.splitlines() ]
154 return br
154 return br
155 except:
155 except:
156 self.raise_(hg.RepoError(_("unexpected response '%s'") % (d[:400] + "...")))
156 self.raise_(util.UnexpectedOutput(_("unexpected response:"), d))
157
157
158 def between(self, pairs):
158 def between(self, pairs):
159 n = "\n".join(["-".join(map(hex, p)) for p in pairs])
159 n = "\n".join(["-".join(map(hex, p)) for p in pairs])
@@ -162,7 +162,7 b' class sshrepository(remoterepository):'
162 p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ]
162 p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ]
163 return p
163 return p
164 except:
164 except:
165 self.raise_(hg.RepoError(_("unexpected response '%s'") % (d[:400] + "...")))
165 self.raise_(util.UnexpectedOutput(_("unexpected response:"), d))
166
166
167 def changegroup(self, nodes, kind):
167 def changegroup(self, nodes, kind):
168 n = " ".join(map(hex, nodes))
168 n = " ".join(map(hex, nodes))
General Comments 0
You need to be logged in to leave comments. Login now