diff -r 30b8db6d0c04 -r a8595176dd64 mercurial/commands.py --- a/mercurial/commands.py Wed Mar 18 22:56:41 2015 -0400 +++ b/mercurial/commands.py Wed Mar 18 23:03:41 2015 -0400 @@ -3225,7 +3225,7 @@ @command('files', [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')), ('0', 'print0', None, _('end filenames with NUL, for use with xargs')), - ] + walkopts + formatteropts, + ] + walkopts + formatteropts + subrepoopts, _('[OPTION]... [PATTERN]...')) def files(ui, repo, *pats, **opts): """list tracked files @@ -3280,7 +3280,7 @@ fmt = '%s' + end m = scmutil.match(ctx, pats, opts) - ret = cmdutil.files(ui, ctx, m, fm, fmt) + ret = cmdutil.files(ui, ctx, m, fm, fmt, opts.get('subrepos')) fm.end()