Show More
@@ -25,7 +25,7 b" def encodelist(l, sep=' '):" | |||||
25 | class wirerepository(repo.repository): |
|
25 | class wirerepository(repo.repository): | |
26 | def lookup(self, key): |
|
26 | def lookup(self, key): | |
27 | self.requirecap('lookup', _('look up remote revision')) |
|
27 | self.requirecap('lookup', _('look up remote revision')) | |
28 | d = self._call("lookup", key=key) |
|
28 | d = self._call("lookup", key=encoding.fromlocal(key)) | |
29 | success, data = d[:-1].split(" ", 1) |
|
29 | success, data = d[:-1].split(" ", 1) | |
30 | if int(success): |
|
30 | if int(success): | |
31 | return bin(data) |
|
31 | return bin(data) | |
@@ -213,7 +213,7 b' def listkeys(repo, proto, namespace):' | |||||
213 |
|
213 | |||
214 | def lookup(repo, proto, key): |
|
214 | def lookup(repo, proto, key): | |
215 | try: |
|
215 | try: | |
216 | r = hex(repo.lookup(key)) |
|
216 | r = hex(repo.lookup(encoding.tolocal(key))) | |
217 | success = 1 |
|
217 | success = 1 | |
218 | except Exception, inst: |
|
218 | except Exception, inst: | |
219 | r = str(inst) |
|
219 | r = str(inst) |
General Comments 0
You need to be logged in to leave comments.
Login now