revset: fix call to ctx.extra() in closed()
authorGeorg Brandl <georg@python.org>
Sun, 13 Jun 2010 23:25:27 +0200
changeset 11349 cf8a9154a362
parent 11348 ad0a334eef16
child 11350 5ea28187707e
revset: fix call to ctx.extra() in closed()
mercurial/revset.py
--- a/mercurial/revset.py	Tue Jun 15 11:05:17 2010 +0200
+++ b/mercurial/revset.py	Sun Jun 13 23:25:27 2010 +0200
@@ -339,7 +339,7 @@
 
 def closed(repo, subset, x):
     getargs(x, 0, 0, "closed takes no arguments")
-    return [r for r in subset if repo[r].extra('close')]
+    return [r for r in subset if repo[r].extra().get('close')]
 
 def head(repo, subset, x):
     getargs(x, 0, 0, "head takes no arguments")