Show More
@@ -427,6 +427,10 b' def getlogrevs(repo, pats, opts):' | |||||
427 | # filtered result. |
|
427 | # filtered result. | |
428 | matched = set(revset.match(repo.ui, expr)(repo, sorted(revs))) |
|
428 | matched = set(revset.match(repo.ui, expr)(repo, sorted(revs))) | |
429 | revs = [r for r in revs if r in matched] |
|
429 | revs = [r for r in revs if r in matched] | |
|
430 | if not opts.get('hidden'): | |||
|
431 | # --hidden is still experimental and not worth a dedicated revset | |||
|
432 | # yet. Fortunately, filtering revision number is fast. | |||
|
433 | revs = [r for r in revs if r not in repo.changelog.hiddenrevs] | |||
430 | return revs, expr, filematcher |
|
434 | return revs, expr, filematcher | |
431 |
|
435 | |||
432 | def generate(ui, dag, displayer, showparents, edgefn, getrenamed=None, |
|
436 | def generate(ui, dag, displayer, showparents, edgefn, getrenamed=None, |
@@ -2026,3 +2026,22 b' Test subdir' | |||||
2026 | ('string', 'r:') |
|
2026 | ('string', 'r:') | |
2027 | ('string', 'd:relpath')) |
|
2027 | ('string', 'd:relpath')) | |
2028 | ('string', 'p:.')))) |
|
2028 | ('string', 'p:.')))) | |
|
2029 | $ cd .. | |||
|
2030 | ||||
|
2031 | Test --hidden | |||
|
2032 | ||||
|
2033 | $ cat > $HGTMP/testhidden.py << EOF | |||
|
2034 | > def reposetup(ui, repo): | |||
|
2035 | > for line in repo.opener('hidden'): | |||
|
2036 | > ctx = repo[line.strip()] | |||
|
2037 | > repo.changelog.hiddenrevs.add(ctx.rev()) | |||
|
2038 | > EOF | |||
|
2039 | $ echo '[extensions]' >> .hg/hgrc | |||
|
2040 | $ echo "hidden=$HGTMP/testhidden.py" >> .hg/hgrc | |||
|
2041 | $ hg id --debug -i -r 0 > .hg/hidden | |||
|
2042 | $ testlog | |||
|
2043 | [] | |||
|
2044 | [] | |||
|
2045 | $ testlog --hidden | |||
|
2046 | [] | |||
|
2047 | [] |
General Comments 0
You need to be logged in to leave comments.
Login now