From f00c23e42e4001654e9f8fcc86154120b58236b1 Mon Sep 17 00:00:00 2001 From: Mark Thomas Date: Fri, 31 Jan 2020 15:25:30 -0800 Subject: [PATCH] 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 --- eden/scm/tests/test-visibility.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eden/scm/tests/test-visibility.t b/eden/scm/tests/test-visibility.t index a054f05efe..d8eff08a7a 100644 --- a/eden/scm/tests/test-visibility.t +++ b/eden/scm/tests/test-visibility.t @@ -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