Mercurial > public > mercurial-scm > hg
comparison mercurial/wireproto.py @ 21653:4188cae727ce
wireproto: use pushkey.decodekey
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 27 May 2014 15:02:51 -0700 |
parents | 3aae044408aa |
children | 0ff44e06275d |
comparison
equal
deleted
inserted
replaced
21652:ed6e61eaebc0 | 21653:4188cae727ce |
---|---|
315 yield {}, None | 315 yield {}, None |
316 f = future() | 316 f = future() |
317 self.ui.debug('preparing listkeys for "%s"\n' % namespace) | 317 self.ui.debug('preparing listkeys for "%s"\n' % namespace) |
318 yield {'namespace': encoding.fromlocal(namespace)}, f | 318 yield {'namespace': encoding.fromlocal(namespace)}, f |
319 d = f.value | 319 d = f.value |
320 r = {} | 320 yield pushkeymod.decodekeys(d) |
321 for l in d.splitlines(): | |
322 k, v = l.split('\t') | |
323 r[encoding.tolocal(k)] = encoding.tolocal(v) | |
324 yield r | |
325 | 321 |
326 def stream_out(self): | 322 def stream_out(self): |
327 return self._callstream('stream_out') | 323 return self._callstream('stream_out') |
328 | 324 |
329 def changegroup(self, nodes, kind): | 325 def changegroup(self, nodes, kind): |