diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -173,6 +173,9 @@ if commandname == b'status': if not kwargs.get(b'rev') and not kwargs.get(b'change'): use_unfiltered = True + elif commandname == b'diff': + if not kwargs.get(b'rev') and not kwargs.get(b'change'): + use_unfiltered = True return repo.unfiltered() if use_unfiltered else repo @@ -2491,6 +2494,8 @@ stat = opts.get(b'stat') reverse = opts.get(b'reverse') + repo = _maybeunfilteredrepo(repo, b'diff', pats, opts) + if revs and change: msg = _(b'cannot specify --rev and --change at the same time') raise error.Abort(msg)