Show More
@@ -838,6 +838,14 b' def heads(repo, subset, x):' | |||
|
838 | 838 | ps = set(parents(repo, subset, x)) |
|
839 | 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 | 849 | def keyword(repo, subset, x): |
|
842 | 850 | """``keyword(string)`` |
|
843 | 851 | Search commit message, user name, and names of changed files for |
@@ -1484,6 +1492,7 b' symbols = {' | |||
|
1484 | 1492 | "grep": grep, |
|
1485 | 1493 | "head": head, |
|
1486 | 1494 | "heads": heads, |
|
1495 | "hidden": hidden, | |
|
1487 | 1496 | "id": node_, |
|
1488 | 1497 | "keyword": keyword, |
|
1489 | 1498 | "last": last, |
@@ -68,7 +68,10 b' Killing a single changeset with replacem' | |||
|
68 | 68 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
69 | 69 | $ mkcommit new_c |
|
70 | 70 | created new head |
|
71 | $ hg log -r 'hidden()' --template '{rev}:{node|short} {desc}\n' --hidden | |
|
71 | 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 |
$ |
|
73 | 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