##// END OF EJS Templates
revset-phases: prefetch attributes in phasesrelated revsets...
Pierre-Yves David -
r23019:c8f32acc default
parent child Browse files
Show More
@@ -743,8 +743,9 b' def draft(repo, subset, x):'
743 Changeset in draft phase."""
743 Changeset in draft phase."""
744 # i18n: "draft" is a keyword
744 # i18n: "draft" is a keyword
745 getargs(x, 0, 0, _("draft takes no arguments"))
745 getargs(x, 0, 0, _("draft takes no arguments"))
746 pc = repo._phasecache
746 phase = repo._phasecache.phase
747 condition = lambda r: pc.phase(repo, r) == phases.draft
747 target = phases.draft
748 condition = lambda r: phase(repo, r) == target
748 return subset.filter(condition, cache=False)
749 return subset.filter(condition, cache=False)
749
750
750 def extinct(repo, subset, x):
751 def extinct(repo, subset, x):
@@ -1294,8 +1295,9 b' def public(repo, subset, x):'
1294 Changeset in public phase."""
1295 Changeset in public phase."""
1295 # i18n: "public" is a keyword
1296 # i18n: "public" is a keyword
1296 getargs(x, 0, 0, _("public takes no arguments"))
1297 getargs(x, 0, 0, _("public takes no arguments"))
1297 pc = repo._phasecache
1298 phase = repo._phasecache.phase
1298 condition = lambda r: pc.phase(repo, r) == phases.public
1299 target = phases.public
1300 condition = lambda r: phase(repo, r) == target
1299 return subset.filter(condition, cache=False)
1301 return subset.filter(condition, cache=False)
1300
1302
1301 def remote(repo, subset, x):
1303 def remote(repo, subset, x):
@@ -1493,8 +1495,9 b' def secret(repo, subset, x):'
1493 Changeset in secret phase."""
1495 Changeset in secret phase."""
1494 # i18n: "secret" is a keyword
1496 # i18n: "secret" is a keyword
1495 getargs(x, 0, 0, _("secret takes no arguments"))
1497 getargs(x, 0, 0, _("secret takes no arguments"))
1496 pc = repo._phasecache
1498 phase = repo._phasecache.phase
1497 condition = lambda x: pc.phase(repo, x) == phases.secret
1499 target = phases.secret
1500 condition = lambda r: phase(repo, r) == target
1498 return subset.filter(condition, cache=False)
1501 return subset.filter(condition, cache=False)
1499
1502
1500 def sort(repo, subset, x):
1503 def sort(repo, subset, x):
General Comments 0
You need to be logged in to leave comments. Login now