mercurial/cmdutil.py
branchstable
changeset 17308 2e0805f59736
parent 17207 62c56c94c77e
child 17391 fc24c10424d2
--- a/mercurial/cmdutil.py	Tue Jul 31 19:47:54 2012 +0200
+++ b/mercurial/cmdutil.py	Wed Aug 01 15:49:00 2012 +0200
@@ -996,7 +996,7 @@
         defrange = '%s:0' % repo['.'].rev()
     else:
         defrange = '-1:0'
-    revs = scmutil.revrange(repo, opts['rev'] or [defrange])
+    revs = scmutil.revrange(repo, opts.get('rev') or [defrange])
     if not revs:
         return []
     wanted = set()