changeset 7684:ee3364d3d859

status: make options optional (issue1481)
author Alexander Solovyov <piranha@piranha.org.ua>
date Sun, 25 Jan 2009 11:27:53 +0200
parents 39ae4fb8cf17
children 161412a3341c
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Jan 23 23:39:28 2009 +0100
+++ b/mercurial/commands.py	Sun Jan 25 11:27:53 2009 +0200
@@ -2748,7 +2748,7 @@
     end = opts.get('print0') and '\0' or '\n'
     copy = {}
     states = 'modified added removed deleted unknown ignored clean'.split()
-    show = [k for k in states if opts[k]]
+    show = [k for k in states if opts.get(k)]
     if opts.get('all'):
         show += ui.quiet and (states[:4] + ['clean']) or states
     if not show: