Show More
@@ -469,6 +469,10 b' class changectx(basectx):' | |||||
469 | pass |
|
469 | pass | |
470 | except (error.FilteredIndexError, error.FilteredLookupError, |
|
470 | except (error.FilteredIndexError, error.FilteredLookupError, | |
471 | error.FilteredRepoLookupError): |
|
471 | error.FilteredRepoLookupError): | |
|
472 | if repo.filtername == 'visible': | |||
|
473 | msg = _("hidden revision '%s'") % changeid | |||
|
474 | hint = _('use --hidden to access hidden revisions') | |||
|
475 | raise error.FilteredRepoLookupError(msg, hint=hint) | |||
472 | msg = _("filtered revision '%s' (not in '%s' subset)") |
|
476 | msg = _("filtered revision '%s' (not in '%s' subset)") | |
473 | msg %= (changeid, repo.filtername) |
|
477 | msg %= (changeid, repo.filtername) | |
474 | raise error.FilteredRepoLookupError(msg) |
|
478 | raise error.FilteredRepoLookupError(msg) |
@@ -1393,7 +1393,8 b' enable obsolete to test hidden feature' | |||||
1393 | 1:a765632148dc55d38c35c4f247c618701886cb2f |
|
1393 | 1:a765632148dc55d38c35c4f247c618701886cb2f | |
1394 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1394 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1395 | $ hg log -r a |
|
1395 | $ hg log -r a | |
1396 | abort: filtered revision 'a' (not in 'visible' subset)! |
|
1396 | abort: hidden revision 'a'! | |
|
1397 | (use --hidden to access hidden revisions) | |||
1397 | [255] |
|
1398 | [255] | |
1398 |
|
1399 | |||
1399 | test that parent prevent a changeset to be hidden |
|
1400 | test that parent prevent a changeset to be hidden |
@@ -182,7 +182,8 b' check that various commands work well wi' | |||||
182 | abort: unknown revision '6'! |
|
182 | abort: unknown revision '6'! | |
183 | [255] |
|
183 | [255] | |
184 | $ hg log -r 4 |
|
184 | $ hg log -r 4 | |
185 | abort: filtered revision '4' (not in 'visible' subset)! |
|
185 | abort: hidden revision '4'! | |
|
186 | (use --hidden to access hidden revisions) | |||
186 | [255] |
|
187 | [255] | |
187 |
|
188 | |||
188 | Check that public changeset are not accounted as obsolete: |
|
189 | Check that public changeset are not accounted as obsolete: |
General Comments 0
You need to be logged in to leave comments.
Login now