diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2471,6 +2471,11 @@ stat = opts.get(b'stat') reverse = opts.get(b'reverse') + if not revs and not change: + # Avoid loading obsmarkers if we're accessing only the working copy + # parent (which will never be hidden). + repo = repo.unfiltered() + if revs and change: msg = _(b'cannot specify --rev and --change at the same time') raise error.Abort(msg)