comparison tests/test-obsolete.t @ 18267:5bb610f87d1d

clfilter: enforce hidden changeset globally The dispatch code now enables filtering of "hidden" changesets globally. The filter is installed before command and extension invocation. The `--hidden` switch is now global and disables this filtering for any command. Code in log dedicated to changeset exclusion is removed as this global filtering has the same effect.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 08 Jan 2013 20:37:37 +0100
parents a2cebd3e4daa
children ed25fe3a7e2f
comparison
equal deleted inserted replaced
18266:09a2b6741695 18267:5bb610f87d1d
9 > echo "$1" > "$1" 9 > echo "$1" > "$1"
10 > hg add "$1" 10 > hg add "$1"
11 > hg ci -m "add $1" 11 > hg ci -m "add $1"
12 > } 12 > }
13 $ getid() { 13 $ getid() {
14 > hg id --debug -ir "desc('$1')" 14 > hg id --debug --hidden -ir "desc('$1')"
15 > } 15 > }
16 16
17 $ cat > debugkeys.py <<EOF 17 $ cat > debugkeys.py <<EOF
18 > def reposetup(ui, repo): 18 > def reposetup(ui, repo):
19 > class debugkeysrepo(repo.__class__): 19 > class debugkeysrepo(repo.__class__):
128 summary: add a 128 summary: add a
129 129
130 130
131 Check that public changeset are not accounted as obsolete: 131 Check that public changeset are not accounted as obsolete:
132 132
133 $ hg phase --public 2 133 $ hg --hidden phase --public 2
134 $ hg --config 'extensions.graphlog=' glog 134 $ hg --config 'extensions.graphlog=' glog
135 @ changeset: 5:5601fb93a350 135 @ changeset: 5:5601fb93a350
136 | tag: tip 136 | tag: tip
137 | parent: 1:7c3bad9141dc 137 | parent: 1:7c3bad9141dc
138 | user: test 138 | user: test