equal
deleted
inserted
replaced
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): |