mercurial/context.py
changeset 23046 c1aede895072
parent 23045 a4dd270a419c
child 23080 c586cb50872b
--- a/mercurial/context.py	Fri Oct 17 15:54:43 2014 -0700
+++ b/mercurial/context.py	Fri Oct 17 15:25:32 2014 -0700
@@ -469,6 +469,10 @@
                 pass
         except (error.FilteredIndexError, error.FilteredLookupError,
                 error.FilteredRepoLookupError):
+            if repo.filtername == 'visible':
+                msg = _("hidden revision '%s'") % changeid
+                hint = _('use --hidden to access hidden revisions')
+                raise error.FilteredRepoLookupError(msg, hint=hint)
             msg = _("filtered revision '%s' (not in '%s' subset)")
             msg %= (changeid, repo.filtername)
             raise error.FilteredRepoLookupError(msg)