894 ('p', 'show-stage', [], |
894 ('p', 'show-stage', [], |
895 _('print parsed tree at the given stage'), _('NAME'))], |
895 _('print parsed tree at the given stage'), _('NAME'))], |
896 _('[-r REV] [--all-files] [OPTION]... FILESPEC')) |
896 _('[-r REV] [--all-files] [OPTION]... FILESPEC')) |
897 def debugfileset(ui, repo, expr, **opts): |
897 def debugfileset(ui, repo, expr, **opts): |
898 '''parse and apply a fileset specification''' |
898 '''parse and apply a fileset specification''' |
|
899 from . import fileset |
|
900 fileset.symbols # force import of fileset so we have predicates to optimize |
899 opts = pycompat.byteskwargs(opts) |
901 opts = pycompat.byteskwargs(opts) |
900 ctx = scmutil.revsingle(repo, opts.get('rev'), None) |
902 ctx = scmutil.revsingle(repo, opts.get('rev'), None) |
901 |
903 |
902 stages = [ |
904 stages = [ |
903 ('parsed', pycompat.identity), |
905 ('parsed', pycompat.identity), |