diff mercurial/revset.py @ 16720:e825a89de5d7

context: add changectx.closesbranch() method This removes the duplicated code for inspecting the 'close' extra field in a changeset.
author Brodie Rao <brodie@sf.io>
date Sun, 13 May 2012 14:04:06 +0200
parents 525fdb738975
children 9acb5cd19162
line wrap: on
line diff
--- a/mercurial/revset.py	Sun May 13 14:04:04 2012 +0200
+++ b/mercurial/revset.py	Sun May 13 14:04:06 2012 +0200
@@ -395,7 +395,7 @@
     """
     # i18n: "closed" is a keyword
     getargs(x, 0, 0, _("closed takes no arguments"))
-    return [r for r in subset if repo[r].extra().get('close')]
+    return [r for r in subset if repo[r].closesbranch()]
 
 def contains(repo, subset, x):
     """``contains(pattern)``