From patchwork Tue Jun 26 12:10:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3834: py3: add b'' prefixes in tests/test-bundle2-pushback.t From: phabricator X-Patchwork-Id: 32436 Message-Id: <06189857f5f3890c3d4ec250a1ce5cae@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Tue, 26 Jun 2018 12:10:34 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG4c358bdaada8: py3: add b'' prefixes in tests/test-bundle2-pushback.t (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3834?vs=9294&id=9303 REVISION DETAIL https://phab.mercurial-scm.org/D3834 AFFECTED FILES contrib/python3-whitelist tests/test-bundle2-pushback.t CHANGE DETAILS To: pulkit, #hg-reviewers Cc: mercurial-devel diff --git a/tests/test-bundle2-pushback.t b/tests/test-bundle2-pushback.t --- a/tests/test-bundle2-pushback.t +++ b/tests/test-bundle2-pushback.t @@ -20,18 +20,18 @@ > It issues an additional pushkey part to send a new > bookmark back to the client""" > result = bundle2.handlechangegroup(op, inpart) - > if 'pushback' in op.reply.capabilities: - > params = {'namespace': 'bookmarks', - > 'key': 'new-server-mark', - > 'old': '', - > 'new': 'tip'} + > if b'pushback' in op.reply.capabilities: + > params = {b'namespace': b'bookmarks', + > b'key': b'new-server-mark', + > b'old': b'', + > b'new': b'tip'} > encodedparams = [(k, pushkey.encode(v)) for (k,v) in params.items()] - > op.reply.newpart('pushkey', mandatoryparams=encodedparams) + > op.reply.newpart(b'pushkey', mandatoryparams=encodedparams) > else: - > op.reply.newpart('output', data='pushback not enabled') + > op.reply.newpart(b'output', data=b'pushback not enabled') > return result > _newhandlechangegroup.params = bundle2.handlechangegroup.params - > bundle2.parthandlermapping['changegroup'] = _newhandlechangegroup + > bundle2.parthandlermapping[b'changegroup'] = _newhandlechangegroup > EOF $ cat >> $HGRCPATH <