Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 41748:980e05204ed8
subrepo: use root-repo-relative path from `hg files` with ui.relative-paths=no
The fix is to pass in a "subuipathfn" as we do everywhere else.
Differential Revision: https://phab.mercurial-scm.org/D5978
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 17 Feb 2019 09:12:30 -0800 |
parents | 8ab42ccb68fe |
children | aaad36b88298 |
comparison
equal
deleted
inserted
replaced
41747:31b84c72ada0 | 41748:980e05204ed8 |
---|---|
2211 end = '\0' | 2211 end = '\0' |
2212 fmt = '%s' + end | 2212 fmt = '%s' + end |
2213 | 2213 |
2214 m = scmutil.match(ctx, pats, opts) | 2214 m = scmutil.match(ctx, pats, opts) |
2215 ui.pager('files') | 2215 ui.pager('files') |
2216 uipathfn = scmutil.getuipathfn(ctx.repo(), legacyrelativevalue=True) | |
2216 with ui.formatter('files', opts) as fm: | 2217 with ui.formatter('files', opts) as fm: |
2217 return cmdutil.files(ui, ctx, m, fm, fmt, opts.get('subrepos')) | 2218 return cmdutil.files(ui, ctx, m, uipathfn, fm, fmt, |
2219 opts.get('subrepos')) | |
2218 | 2220 |
2219 @command( | 2221 @command( |
2220 'forget', | 2222 'forget', |
2221 [('i', 'interactive', None, _('use interactive mode')), | 2223 [('i', 'interactive', None, _('use interactive mode')), |
2222 ] + walkopts + dryrunopts, | 2224 ] + walkopts + dryrunopts, |