diff --git a/tests/test-check-code-hg.t b/tests/test-check-code-hg.t
index f9f405be4c3a4ef23cc664acce2567d02211101c_dGVzdHMvdGVzdC1jaGVjay1jb2RlLWhnLnQ=..c58aa73bf0b943275edd805d738e29b7e3dffff8_dGVzdHMvdGVzdC1jaGVjay1jb2RlLWhnLnQ= 100644
--- a/tests/test-check-code-hg.t
+++ b/tests/test-check-code-hg.t
@@ -6,7 +6,7 @@
 New errors are not allowed. Warnings are strongly discouraged.
 (The writing "no-che?k-code" is for not skipping this file when checking.)
 
-  $ hg manifest 2>/dev/null | sed 's-\\-/-g' |
+  $ hg locate | sed 's-\\-/-g' |
   >   xargs "$check_code" --warnings --per-file=0 || false
   Skipping hgext/zeroconf/Zeroconf.py it has no-che?k-code (glob)
   Skipping i18n/polib.py it has no-che?k-code (glob)