Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 37647:516b5a5edae3
exchange: use command executor for pushkey
Differential Revision: https://phab.mercurial-scm.org/D3315
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 13 Apr 2018 11:45:38 -0700 |
parents | 72b0982cd509 |
children | fe8c6f9f2914 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Fri Apr 13 11:30:44 2018 -0700 +++ b/mercurial/debugcommands.py Fri Apr 13 11:45:38 2018 -0700 @@ -1832,7 +1832,14 @@ target = hg.peer(ui, {}, repopath) if keyinfo: key, old, new = keyinfo - r = target.pushkey(namespace, key, old, new) + with target.commandexecutor() as e: + r = e.callcommand('pushkey', { + 'namespace': namespace, + 'key': key, + 'old': old, + 'new': new, + }).result() + ui.status(pycompat.bytestr(r) + '\n') return not r else: