Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 7684:ee3364d3d859
status: make options optional (issue1481)
author | Alexander Solovyov <piranha@piranha.org.ua> |
---|---|
date | Sun, 25 Jan 2009 11:27:53 +0200 |
parents | 6a24fb994701 |
children | bcdc2fe3fd07 |
comparison
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 |