comparison mercurial/revset.py @ 11349:cf8a9154a362

revset: fix call to ctx.extra() in closed()
author Georg Brandl <georg@python.org>
date Sun, 13 Jun 2010 23:25:27 +0200
parents 744d5b73f776
children de544774ebea
comparison
equal deleted inserted replaced
11348:ad0a334eef16 11349:cf8a9154a362
337 cl = repo.changelog 337 cl = repo.changelog
338 return [r for r in subset if cl.parentrevs(r)[1] != -1] 338 return [r for r in subset if cl.parentrevs(r)[1] != -1]
339 339
340 def closed(repo, subset, x): 340 def closed(repo, subset, x):
341 getargs(x, 0, 0, "closed takes no arguments") 341 getargs(x, 0, 0, "closed takes no arguments")
342 return [r for r in subset if repo[r].extra('close')] 342 return [r for r in subset if repo[r].extra().get('close')]
343 343
344 def head(repo, subset, x): 344 def head(repo, subset, x):
345 getargs(x, 0, 0, "head takes no arguments") 345 getargs(x, 0, 0, "head takes no arguments")
346 hs = set() 346 hs = set()
347 for b, ls in repo.branchmap().iteritems(): 347 for b, ls in repo.branchmap().iteritems():