mercurial/commands.py
changeset 24413 a8595176dd64
parent 24400 03c84c966ef5
child 24421 77881cade20e
--- 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()