Show More
@@ -838,6 +838,14 b' def heads(repo, subset, x):' | |||||
838 | ps = set(parents(repo, subset, x)) |
|
838 | ps = set(parents(repo, subset, x)) | |
839 | return [r for r in s if r not in ps] |
|
839 | return [r for r in s if r not in ps] | |
840 |
|
840 | |||
|
841 | def hidden(repo, subset, x): | |||
|
842 | """``hidden()`` | |||
|
843 | Hidden changesets. | |||
|
844 | """ | |||
|
845 | # i18n: "hidden" is a keyword | |||
|
846 | getargs(x, 0, 0, _("hidden takes no arguments")) | |||
|
847 | return [r for r in subset if r in repo.hiddenrevs] | |||
|
848 | ||||
841 | def keyword(repo, subset, x): |
|
849 | def keyword(repo, subset, x): | |
842 | """``keyword(string)`` |
|
850 | """``keyword(string)`` | |
843 | Search commit message, user name, and names of changed files for |
|
851 | Search commit message, user name, and names of changed files for | |
@@ -1484,6 +1492,7 b' symbols = {' | |||||
1484 | "grep": grep, |
|
1492 | "grep": grep, | |
1485 | "head": head, |
|
1493 | "head": head, | |
1486 | "heads": heads, |
|
1494 | "heads": heads, | |
|
1495 | "hidden": hidden, | |||
1487 | "id": node_, |
|
1496 | "id": node_, | |
1488 | "keyword": keyword, |
|
1497 | "keyword": keyword, | |
1489 | "last": last, |
|
1498 | "last": last, |
@@ -68,7 +68,10 b' Killing a single changeset with replacem' | |||||
68 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
68 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
69 | $ mkcommit new_c |
|
69 | $ mkcommit new_c | |
70 | created new head |
|
70 | created new head | |
|
71 | $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden | |||
71 | $ hg debugobsolete `getid original_c` `getid new_c` -d '56 12' |
|
72 | $ hg debugobsolete `getid original_c` `getid new_c` -d '56 12' | |
|
73 | $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden | |||
|
74 | 2:245bde4270cd add original_c | |||
72 |
$ |
|
75 | $ hg debugobsolete | |
73 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f 0 {'date': '56 12', 'user': 'test'} |
|
76 | 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f 0 {'date': '56 12', 'user': 'test'} | |
74 |
|
77 |
General Comments 0
You need to be logged in to leave comments.
Login now