Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 36719:390d16ea7c76
py3: use pycompat.bytestr instead of str
Differential Revision: https://phab.mercurial-scm.org/D2648
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 04 Mar 2018 22:33:59 +0530 |
parents | c6061cadb400 |
children | 7a25f6cfebe8 |
comparison
equal
deleted
inserted
replaced
36718:59802fa590db | 36719:390d16ea7c76 |
---|---|
1809 | 1809 |
1810 target = hg.peer(ui, {}, repopath) | 1810 target = hg.peer(ui, {}, repopath) |
1811 if keyinfo: | 1811 if keyinfo: |
1812 key, old, new = keyinfo | 1812 key, old, new = keyinfo |
1813 r = target.pushkey(namespace, key, old, new) | 1813 r = target.pushkey(namespace, key, old, new) |
1814 ui.status(str(r) + '\n') | 1814 ui.status(pycompat.bytestr(r) + '\n') |
1815 return not r | 1815 return not r |
1816 else: | 1816 else: |
1817 for k, v in sorted(target.listkeys(namespace).iteritems()): | 1817 for k, v in sorted(target.listkeys(namespace).iteritems()): |
1818 ui.write("%s\t%s\n" % (util.escapestr(k), | 1818 ui.write("%s\t%s\n" % (util.escapestr(k), |
1819 util.escapestr(v))) | 1819 util.escapestr(v))) |