mercurial/commands.py
changeset 7684 ee3364d3d859
parent 7656 6a24fb994701
child 7691 bcdc2fe3fd07
--- 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: