This revision was automatically updated to reflect the committed changes. Closed by commit rHG2b9f315a4217: py3: use codecs.encode() to encode in rot-13 encoding (authored by pulkit, committed by ).
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D4608?vs=11097&id=11103 REVISION DETAIL https://phab.mercurial-scm.org/D4608 AFFECTED FILES tests/test-log-exthook.t CHANGE DETAILS diff --git a/tests/test-log-exthook.t b/tests/test-log-exthook.t --- a/tests/test-log-exthook.t +++ b/tests/test-log-exthook.t @@ -3,13 +3,14 @@ $ cat > $TESTTMP/logexthook.py <<EOF > from __future__ import absolute_import + > import codecs > from mercurial import ( > commands, > logcmdutil, > repair, > ) > def rot13description(self, ctx): - > summary = "summary".encode('rot13') + > summary = codecs.encode("summary", 'rot-13') > description = ctx.description().strip().splitlines()[0].encode('rot13') > self.ui.write("%s: %s\n" % (summary, description)) > def reposetup(ui, repo): To: pulkit, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel