mercurial/commands.py
changeset 25252 ac381dd7a21f
parent 25251 235f6490550c
child 25255 ad1d2c952889
equal deleted inserted replaced
25251:235f6490550c 25252:ac381dd7a21f
  2162     _('[-r REV] FILESPEC'))
  2162     _('[-r REV] FILESPEC'))
  2163 def debugfileset(ui, repo, expr, **opts):
  2163 def debugfileset(ui, repo, expr, **opts):
  2164     '''parse and apply a fileset specification'''
  2164     '''parse and apply a fileset specification'''
  2165     ctx = scmutil.revsingle(repo, opts.get('rev'), None)
  2165     ctx = scmutil.revsingle(repo, opts.get('rev'), None)
  2166     if ui.verbose:
  2166     if ui.verbose:
  2167         tree = fileset.parse(expr)[0]
  2167         tree = fileset.parse(expr)
  2168         ui.note(tree, "\n")
  2168         ui.note(tree, "\n")
  2169 
  2169 
  2170     for f in ctx.getfileset(expr):
  2170     for f in ctx.getfileset(expr):
  2171         ui.write("%s\n" % f)
  2171         ui.write("%s\n" % f)
  2172 
  2172