D3181: wireproto: port listkeys commands to wire protocol v2

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Mon Apr 9 11:06:58 EDT 2018


yuja added inline comments.

INLINE COMMENTS

> wireproto.py:1231
> +def listkeysv2(repo, proto, namespace=None):
> +    keys = repo.listkeys(encoding.tolocal(namespace))
> +    keys = {encoding.fromlocal(k): encoding.fromlocal(v)

Nit: if `namespace` could be `None`, this would crash.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3181

To: indygreg, #hg-reviewers, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list