Show More
@@ -744,7 +744,8 b' def draft(repo, subset, x):' | |||||
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 | pc = repo._phasecache | |
747 |
|
|
747 | condition = lambda r: pc.phase(repo, r) == phases.draft | |
|
748 | return subset.filter(condition, cache=False) | |||
748 |
|
749 | |||
749 | def extinct(repo, subset, x): |
|
750 | def extinct(repo, subset, x): | |
750 | """``extinct()`` |
|
751 | """``extinct()`` | |
@@ -1294,7 +1295,8 b' def public(repo, subset, x):' | |||||
1294 | # i18n: "public" is a keyword |
|
1295 | # i18n: "public" is a keyword | |
1295 | getargs(x, 0, 0, _("public takes no arguments")) |
|
1296 | getargs(x, 0, 0, _("public takes no arguments")) | |
1296 | pc = repo._phasecache |
|
1297 | pc = repo._phasecache | |
1297 |
|
|
1298 | condition = lambda r: pc.phase(repo, r) == phases.public | |
|
1299 | return subset.filter(condition, cache=False) | |||
1298 |
|
1300 | |||
1299 | def remote(repo, subset, x): |
|
1301 | def remote(repo, subset, x): | |
1300 | """``remote([id [,path]])`` |
|
1302 | """``remote([id [,path]])`` | |
@@ -1492,7 +1494,8 b' def secret(repo, subset, x):' | |||||
1492 | # i18n: "secret" is a keyword |
|
1494 | # i18n: "secret" is a keyword | |
1493 | getargs(x, 0, 0, _("secret takes no arguments")) |
|
1495 | getargs(x, 0, 0, _("secret takes no arguments")) | |
1494 | pc = repo._phasecache |
|
1496 | pc = repo._phasecache | |
1495 |
|
|
1497 | condition = lambda x: pc.phase(repo, x) == phases.secret | |
|
1498 | return subset.filter(condition, cache=False) | |||
1496 |
|
1499 | |||
1497 | def sort(repo, subset, x): |
|
1500 | def sort(repo, subset, x): | |
1498 | """``sort(set[, [-]key...])`` |
|
1501 | """``sort(set[, [-]key...])`` |
General Comments 0
You need to be logged in to leave comments.
Login now