py3: fix encoding in test-visibility.t

Summary: The test itself needs to ensure it decodes the visibleheads file.

Reviewed By: quark-zju

Differential Revision: D19666640

fbshipit-source-id: 999ab3396b0afc7bd86db9ae1ba126730ee3f02d
This commit is contained in:
Mark Thomas 2020-01-31 15:25:30 -08:00 committed by Facebook Github Bot
parent 299212da50
commit f00c23e42e

View File

@ -16,7 +16,7 @@ Useful functions
> }
$ printvisibleheads() {
> hg dbsh -c 'ui.write(repo.svfs.read("visibleheads"))' | sort
> hg dbsh -c 'ui.write(m.pycompat.decodeutf8(repo.svfs.read("visibleheads")))' | sort
> }
Setup