mercurial/commands.py
changeset 7684 ee3364d3d859
parent 7656 6a24fb994701
child 7691 bcdc2fe3fd07
equal deleted inserted replaced
7683:39ae4fb8cf17 7684:ee3364d3d859
  2746     node1, node2 = cmdutil.revpair(repo, opts.get('rev'))
  2746     node1, node2 = cmdutil.revpair(repo, opts.get('rev'))
  2747     cwd = (pats and repo.getcwd()) or ''
  2747     cwd = (pats and repo.getcwd()) or ''
  2748     end = opts.get('print0') and '\0' or '\n'
  2748     end = opts.get('print0') and '\0' or '\n'
  2749     copy = {}
  2749     copy = {}
  2750     states = 'modified added removed deleted unknown ignored clean'.split()
  2750     states = 'modified added removed deleted unknown ignored clean'.split()
  2751     show = [k for k in states if opts[k]]
  2751     show = [k for k in states if opts.get(k)]
  2752     if opts.get('all'):
  2752     if opts.get('all'):
  2753         show += ui.quiet and (states[:4] + ['clean']) or states
  2753         show += ui.quiet and (states[:4] + ['clean']) or states
  2754     if not show:
  2754     if not show:
  2755         show = ui.quiet and states[:4] or states[:5]
  2755         show = ui.quiet and states[:4] or states[:5]
  2756 
  2756