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