##// END OF EJS Templates
clfilter: enforce hidden changeset globally...
Pierre-Yves David -
r18267:5bb610f8 default
parent child Browse files
Show More
@@ -39,7 +39,6 b" testedwith = 'internal'"
39 _('show changesets within the given named branch'), _('BRANCH')),
39 _('show changesets within the given named branch'), _('BRANCH')),
40 ('P', 'prune', [],
40 ('P', 'prune', [],
41 _('do not display revision or any of its ancestors'), _('REV')),
41 _('do not display revision or any of its ancestors'), _('REV')),
42 ('', 'hidden', False, _('show hidden changesets (DEPRECATED)')),
43 ] + commands.logopts + commands.walkopts,
42 ] + commands.logopts + commands.walkopts,
44 _('[OPTION]... [FILE]'))
43 _('[OPTION]... [FILE]'))
45 def graphlog(ui, repo, *pats, **opts):
44 def graphlog(ui, repo, *pats, **opts):
@@ -1406,8 +1406,6 b' def getgraphlogrevs(repo, pats, opts):'
1406 # depends on revisions resolved from --rev...
1406 # depends on revisions resolved from --rev...
1407 follow = opts.get('follow') or opts.get('follow_first')
1407 follow = opts.get('follow') or opts.get('follow_first')
1408 possiblyunsorted = False # whether revs might need sorting
1408 possiblyunsorted = False # whether revs might need sorting
1409 if not opts.get('hidden'):
1410 repo = repo.filtered('hidden')
1411 if opts.get('rev'):
1409 if opts.get('rev'):
1412 revs = scmutil.revrange(repo, opts['rev'])
1410 revs = scmutil.revrange(repo, opts['rev'])
1413 # Don't sort here because _makegraphlogrevset might depend on the
1411 # Don't sort here because _makegraphlogrevset might depend on the
@@ -49,6 +49,7 b' globalopts = ['
49 ('', 'profile', None, _('print command execution profile')),
49 ('', 'profile', None, _('print command execution profile')),
50 ('', 'version', None, _('output version information and exit')),
50 ('', 'version', None, _('output version information and exit')),
51 ('h', 'help', None, _('display help and exit')),
51 ('h', 'help', None, _('display help and exit')),
52 ('', 'hidden', False, _('consider hidden changesets')),
52 ]
53 ]
53
54
54 dryrunopts = [('n', 'dry-run', None,
55 dryrunopts = [('n', 'dry-run', None,
@@ -4091,7 +4092,6 b' def locate(ui, repo, *pats, **opts):'
4091 _('show changesets within the given named branch'), _('BRANCH')),
4092 _('show changesets within the given named branch'), _('BRANCH')),
4092 ('P', 'prune', [],
4093 ('P', 'prune', [],
4093 _('do not display revision or any of its ancestors'), _('REV')),
4094 _('do not display revision or any of its ancestors'), _('REV')),
4094 ('', 'hidden', False, _('show hidden changesets (DEPRECATED)')),
4095 ] + logopts + walkopts,
4095 ] + logopts + walkopts,
4096 _('[OPTION]... [FILE]'))
4096 _('[OPTION]... [FILE]'))
4097 def log(ui, repo, *pats, **opts):
4097 def log(ui, repo, *pats, **opts):
@@ -4207,8 +4207,6 b' def log(ui, repo, *pats, **opts):'
4207 return
4207 return
4208 if opts.get('branch') and ctx.branch() not in opts['branch']:
4208 if opts.get('branch') and ctx.branch() not in opts['branch']:
4209 return
4209 return
4210 if not opts.get('hidden') and ctx.hidden():
4211 return
4212 if df and not df(ctx.date()[0]):
4210 if df and not df(ctx.date()[0]):
4213 return
4211 return
4214
4212
@@ -710,6 +710,10 b' def _dispatch(req):'
710 repo = hg.repository(ui, path=path)
710 repo = hg.repository(ui, path=path)
711 if not repo.local():
711 if not repo.local():
712 raise util.Abort(_("repository '%s' is not local") % path)
712 raise util.Abort(_("repository '%s' is not local") % path)
713 if not options['hidden']:
714 repo = repo.filtered('hidden')
715 else:
716 repo = repo.unfiltered()
713 repo.ui.setconfig("bundle", "mainreporoot", repo.root)
717 repo.ui.setconfig("bundle", "mainreporoot", repo.root)
714 except error.RequirementError:
718 except error.RequirementError:
715 raise
719 raise
@@ -492,9 +492,9 b' Test that amend does not make it easy to'
492 ---------------------------------------------------------------------
492 ---------------------------------------------------------------------
493
493
494
494
495 $ hg id -r 14
495 $ hg id -r 14 --hidden
496 b650e6ee8614 (a)
496 b650e6ee8614 (a)
497 $ hg revert -ar 14
497 $ hg revert -ar 14 --hidden
498 reverting a
498 reverting a
499 $ hg commit --amend
499 $ hg commit --amend
500 $ hg id
500 $ hg id
@@ -123,6 +123,7 b' Show the global options'
123 --encoding
123 --encoding
124 --encodingmode
124 --encodingmode
125 --help
125 --help
126 --hidden
126 --noninteractive
127 --noninteractive
127 --profile
128 --profile
128 --quiet
129 --quiet
@@ -153,6 +154,7 b' Show the options for the "serve" command'
153 --encodingmode
154 --encodingmode
154 --errorlog
155 --errorlog
155 --help
156 --help
157 --hidden
156 --ipv6
158 --ipv6
157 --name
159 --name
158 --noninteractive
160 --noninteractive
@@ -200,7 +202,7 b' Show all commands + options'
200 export: output, switch-parent, rev, text, git, nodates
202 export: output, switch-parent, rev, text, git, nodates
201 forget: include, exclude
203 forget: include, exclude
202 init: ssh, remotecmd, insecure
204 init: ssh, remotecmd, insecure
203 log: follow, follow-first, date, copies, keyword, rev, removed, only-merges, user, only-branch, branch, prune, hidden, patch, git, limit, no-merges, stat, graph, style, template, include, exclude
205 log: follow, follow-first, date, copies, keyword, rev, removed, only-merges, user, only-branch, branch, prune, patch, git, limit, no-merges, stat, graph, style, template, include, exclude
204 merge: force, rev, preview, tool
206 merge: force, rev, preview, tool
205 pull: update, force, rev, bookmark, branch, ssh, remotecmd, insecure
207 pull: update, force, rev, bookmark, branch, ssh, remotecmd, insecure
206 push: force, rev, bookmark, branch, new-branch, ssh, remotecmd, insecure
208 push: force, rev, bookmark, branch, new-branch, ssh, remotecmd, insecure
@@ -200,6 +200,7 b' hide outer repo'
200 --profile print command execution profile
200 --profile print command execution profile
201 --version output version information and exit
201 --version output version information and exit
202 -h --help display help and exit
202 -h --help display help and exit
203 --hidden consider hidden changesets
203
204
204 [+] marked option can be specified multiple times
205 [+] marked option can be specified multiple times
205
206
@@ -230,6 +231,7 b' hide outer repo'
230 --profile print command execution profile
231 --profile print command execution profile
231 --version output version information and exit
232 --version output version information and exit
232 -h --help display help and exit
233 -h --help display help and exit
234 --hidden consider hidden changesets
233
235
234 [+] marked option can be specified multiple times
236 [+] marked option can be specified multiple times
235 $ echo 'debugextension = !' >> $HGRCPATH
237 $ echo 'debugextension = !' >> $HGRCPATH
@@ -248,6 +248,7 b' Test short command list with verbose opt'
248 --profile print command execution profile
248 --profile print command execution profile
249 --version output version information and exit
249 --version output version information and exit
250 -h --help display help and exit
250 -h --help display help and exit
251 --hidden consider hidden changesets
251
252
252 [+] marked option can be specified multiple times
253 [+] marked option can be specified multiple times
253
254
@@ -334,6 +335,7 b' Verbose help for add'
334 --profile print command execution profile
335 --profile print command execution profile
335 --version output version information and exit
336 --version output version information and exit
336 -h --help display help and exit
337 -h --help display help and exit
338 --hidden consider hidden changesets
337
339
338 [+] marked option can be specified multiple times
340 [+] marked option can be specified multiple times
339
341
@@ -576,6 +576,7 b' Copy and show added kwfiles'
576 Commit and show expansion in original and copy
576 Commit and show expansion in original and copy
577
577
578 $ hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>'
578 $ hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>'
579 invalid branchheads cache (unserved): tip differs
579 c
580 c
580 c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292
581 c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292
581 overwriting c expanding keywords
582 overwriting c expanding keywords
@@ -759,7 +760,6 b' Commit with multi-line message and custo'
759 | invalid here.
760 | invalid here.
760
761
761 $ hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>'
762 $ hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>'
762 invalid branchheads cache: tip differs
763 invalid branchheads cache (unserved): tip differs
763 invalid branchheads cache (unserved): tip differs
764 a
764 a
765 invalid branchheads cache: tip differs
765 invalid branchheads cache: tip differs
@@ -806,7 +806,6 b' remove with status checks'
806 $ hg remove a
806 $ hg remove a
807 $ hg --debug commit -m rma
807 $ hg --debug commit -m rma
808 invalid branchheads cache: tip differs
808 invalid branchheads cache: tip differs
809 invalid branchheads cache: tip differs
810 committed changeset 3:d14c712653769de926994cf7fbb06c8fbd68f012
809 committed changeset 3:d14c712653769de926994cf7fbb06c8fbd68f012
811 $ hg status
810 $ hg status
812 ? c
811 ? c
@@ -917,7 +916,6 b' kwexpand x/a should abort'
917 [255]
916 [255]
918 $ cd x
917 $ cd x
919 $ hg --debug commit -m xa -d '3 0' -u 'User Name <user@example.com>'
918 $ hg --debug commit -m xa -d '3 0' -u 'User Name <user@example.com>'
920 invalid branchheads cache: tip differs
921 x/a
919 x/a
922 x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e
920 x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e
923 invalid branchheads cache: tip differs
921 invalid branchheads cache: tip differs
@@ -1164,7 +1164,7 b' enable obsolete to test hidden feature'
1164
1164
1165 test that parent prevent a changeset to be hidden
1165 test that parent prevent a changeset to be hidden
1166
1166
1167 $ hg up 1 -q
1167 $ hg up 1 -q --hidden
1168 $ hg log --template='{rev}:{node}\n'
1168 $ hg log --template='{rev}:{node}\n'
1169 1:a765632148dc55d38c35c4f247c618701886cb2f
1169 1:a765632148dc55d38c35c4f247c618701886cb2f
1170 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05
1170 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05
@@ -136,7 +136,6 b' Test for invalid branch cache:'
136 $ cp .hg/bc-invalid $branchcache
136 $ cp .hg/bc-invalid $branchcache
137
137
138 $ hg --debug log -r foo
138 $ hg --debug log -r foo
139 invalid branchheads cache: tip differs
140 changeset: 4:adf1a74a7f7b4cd193d12992f5d0d6a004ed21d6
139 changeset: 4:adf1a74a7f7b4cd193d12992f5d0d6a004ed21d6
141 branch: foo
140 branch: foo
142 tag: tip
141 tag: tip
@@ -27,7 +27,7 b' Enable obsolete'
27 > hg ci -m "$1"
27 > hg ci -m "$1"
28 > }
28 > }
29 $ getid() {
29 $ getid() {
30 > hg id --debug -ir "desc('$1')"
30 > hg id --debug --hidden -ir "desc('$1')"
31 > }
31 > }
32
32
33 setup repo
33 setup repo
@@ -72,7 +72,7 b' A_1 have two direct and divergent succes'
72 |/
72 |/
73 @ 0:d20a80d4def3 base
73 @ 0:d20a80d4def3 base
74
74
75 $ hg debugsuccessorssets 'all()'
75 $ hg debugsuccessorssets --hidden 'all()'
76 d20a80d4def3
76 d20a80d4def3
77 d20a80d4def3
77 d20a80d4def3
78 007dc284c1f8
78 007dc284c1f8
@@ -119,7 +119,7 b' indirect divergence with known changeset'
119 |/
119 |/
120 o 0:d20a80d4def3 base
120 o 0:d20a80d4def3 base
121
121
122 $ hg debugsuccessorssets 'all()'
122 $ hg debugsuccessorssets --hidden 'all()'
123 d20a80d4def3
123 d20a80d4def3
124 d20a80d4def3
124 d20a80d4def3
125 007dc284c1f8
125 007dc284c1f8
@@ -154,7 +154,7 b' indirect divergence with known changeset'
154 |/
154 |/
155 @ 0:d20a80d4def3 base
155 @ 0:d20a80d4def3 base
156
156
157 $ hg debugsuccessorssets 'all()'
157 $ hg debugsuccessorssets --hidden 'all()'
158 d20a80d4def3
158 d20a80d4def3
159 d20a80d4def3
159 d20a80d4def3
160 007dc284c1f8
160 007dc284c1f8
@@ -180,7 +180,7 b' do not take unknown node in account if t'
180 $ hg debugobsolete bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccccccccc
180 $ hg debugobsolete bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccccccccccc
181 $ hg debugobsolete `getid A_1` dddddddddddddddddddddddddddddddddddddddd
181 $ hg debugobsolete `getid A_1` dddddddddddddddddddddddddddddddddddddddd
182
182
183 $ hg debugsuccessorssets 'desc('A_0')'
183 $ hg debugsuccessorssets --hidden 'desc('A_0')'
184 007dc284c1f8
184 007dc284c1f8
185 392fd25390da
185 392fd25390da
186
186
@@ -208,7 +208,7 b' divergence that converge again is not di'
208 |/
208 |/
209 o 0:d20a80d4def3 base
209 o 0:d20a80d4def3 base
210
210
211 $ hg debugsuccessorssets 'all()'
211 $ hg debugsuccessorssets --hidden 'all()'
212 d20a80d4def3
212 d20a80d4def3
213 d20a80d4def3
213 d20a80d4def3
214 007dc284c1f8
214 007dc284c1f8
@@ -236,7 +236,7 b' split is not divergences'
236 |/
236 |/
237 @ 0:d20a80d4def3 base
237 @ 0:d20a80d4def3 base
238
238
239 $ hg debugsuccessorssets 'all()'
239 $ hg debugsuccessorssets --hidden 'all()'
240 d20a80d4def3
240 d20a80d4def3
241 d20a80d4def3
241 d20a80d4def3
242 007dc284c1f8
242 007dc284c1f8
@@ -277,7 +277,7 b' Even when subsequente rewriting happen'
277 |/
277 |/
278 o 0:d20a80d4def3 base
278 o 0:d20a80d4def3 base
279
279
280 $ hg debugsuccessorssets 'all()'
280 $ hg debugsuccessorssets --hidden 'all()'
281 d20a80d4def3
281 d20a80d4def3
282 d20a80d4def3
282 d20a80d4def3
283 007dc284c1f8
283 007dc284c1f8
@@ -333,7 +333,7 b' Check more complexe obsolescence graft ('
333 |/
333 |/
334 @ 0:d20a80d4def3 base
334 @ 0:d20a80d4def3 base
335
335
336 $ hg debugsuccessorssets 'all()'
336 $ hg debugsuccessorssets --hidden 'all()'
337 d20a80d4def3
337 d20a80d4def3
338 d20a80d4def3
338 d20a80d4def3
339 007dc284c1f8
339 007dc284c1f8
@@ -400,7 +400,7 b' fix the divergence'
400 |/
400 |/
401 @ 0:d20a80d4def3 base
401 @ 0:d20a80d4def3 base
402
402
403 $ hg debugsuccessorssets 'all()'
403 $ hg debugsuccessorssets --hidden 'all()'
404 d20a80d4def3
404 d20a80d4def3
405 d20a80d4def3
405 d20a80d4def3
406 007dc284c1f8
406 007dc284c1f8
@@ -440,7 +440,7 b' successors-set. (report [A,B] not [A] + '
440 $ hg debugobsolete `getid A_0` `getid A_2`
440 $ hg debugobsolete `getid A_0` `getid A_2`
441 $ hg debugobsolete `getid A_0` `getid A_1` `getid A_2`
441 $ hg debugobsolete `getid A_0` `getid A_1` `getid A_2`
442 invalid branchheads cache (unserved): tip differs
442 invalid branchheads cache (unserved): tip differs
443 $ hg debugsuccessorssets 'desc('A_0')'
443 $ hg debugsuccessorssets --hidden 'desc('A_0')'
444 007dc284c1f8
444 007dc284c1f8
445 82623d38b9ba 392fd25390da
445 82623d38b9ba 392fd25390da
446
446
@@ -11,7 +11,7 b''
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
@@ -130,7 +130,7 b' Check that graphlog detect that a change'
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
General Comments 0
You need to be logged in to leave comments. Login now