##// END OF EJS Templates
Don't show traceback on 'hg clone -r unknown ssh://hg.example.com/'.
Thomas Arendsen Hein -
r3764:6652209d default
parent child Browse files
Show More
@@ -134,14 +134,10 b' class sshrepository(remoterepository):'
134 def lookup(self, key):
134 def lookup(self, key):
135 d = self.call("lookup", key=key)
135 d = self.call("lookup", key=key)
136 success, data = d[:-1].split(" ", 1)
136 success, data = d[:-1].split(" ", 1)
137 try:
137 if int(success):
138 if int(success):
138 return bin(data)
139 return bin(data)
139 else:
140 else:
140 self.repoerror(data)
141 raise data
142 except:
143 raise
144 raise hg.RepoError("unexpected response '%s'" % (d[:400] + "..."))
145
141
146 def heads(self):
142 def heads(self):
147 d = self.call("heads")
143 d = self.call("heads")
General Comments 0
You need to be logged in to leave comments. Login now