mercurial/commands.py
branchstable
changeset 17308 2e0805f59736
parent 17299 e51d4aedace9
child 17322 7124f984dc8d
--- a/mercurial/commands.py	Tue Jul 31 19:47:54 2012 +0200
+++ b/mercurial/commands.py	Wed Aug 01 15:49:00 2012 +0200
@@ -4074,7 +4074,7 @@
         getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
 
     df = False
-    if opts["date"]:
+    if opts.get("date"):
         df = util.matchdate(opts["date"])
 
     branches = opts.get('branch', []) + opts.get('only_branch', [])