mercurial/revset.py
changeset 42002 662ffdde5adf
parent 41698 5fe4de392edb
child 42004 0bd730fbcc2b
equal deleted inserted replaced
42001:624d6683c705 42002:662ffdde5adf
  1238     """
  1238     """
  1239     # i18n: "head" is a keyword
  1239     # i18n: "head" is a keyword
  1240     getargs(x, 0, 0, _("head takes no arguments"))
  1240     getargs(x, 0, 0, _("head takes no arguments"))
  1241     hs = set()
  1241     hs = set()
  1242     cl = repo.changelog
  1242     cl = repo.changelog
  1243     for ls in repo.branchmap().itervalues():
  1243     for ls in repo.branchmap().iterheads():
  1244         hs.update(cl.rev(h) for h in ls)
  1244         hs.update(cl.rev(h) for h in ls)
  1245     return subset & baseset(hs)
  1245     return subset & baseset(hs)
  1246 
  1246 
  1247 @predicate('heads(set)', safe=True, takeorder=True)
  1247 @predicate('heads(set)', safe=True, takeorder=True)
  1248 def heads(repo, subset, x, order):
  1248 def heads(repo, subset, x, order):