status: make options optional (issue1481)
authorAlexander Solovyov <piranha@piranha.org.ua>
Sun, 25 Jan 2009 11:27:53 +0200
changeset 7684 ee3364d3d859
parent 7683 39ae4fb8cf17
child 7685 161412a3341c
status: make options optional (issue1481)
mercurial/commands.py
--- 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: