mercurial/commands.py
changeset 41748 980e05204ed8
parent 41739 8ab42ccb68fe
child 41759 aaad36b88298
--- a/mercurial/commands.py	Sun Feb 17 09:05:28 2019 -0800
+++ b/mercurial/commands.py	Sun Feb 17 09:12:30 2019 -0800
@@ -2213,8 +2213,10 @@
 
     m = scmutil.match(ctx, pats, opts)
     ui.pager('files')
+    uipathfn = scmutil.getuipathfn(ctx.repo(), legacyrelativevalue=True)
     with ui.formatter('files', opts) as fm:
-        return cmdutil.files(ui, ctx, m, fm, fmt, opts.get('subrepos'))
+        return cmdutil.files(ui, ctx, m, uipathfn, fm, fmt,
+                             opts.get('subrepos'))
 
 @command(
     'forget',