diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -179,6 +179,9 @@ elif commandname == b'annotate': if not kwargs.get(b'rev'): use_unfiltered = True + elif commandname == b'export': + if not kwargs.get(b'bookmark') and not args: + use_unfiltered = True return repo.unfiltered() if use_unfiltered else repo @@ -2641,6 +2644,8 @@ if bookmark and changesets: raise error.Abort(_(b"-r and -B are mutually exclusive")) + repo =_maybeunfilteredrepo(repo, b'export', changesets, opts) + if bookmark: if bookmark not in repo._bookmarks: raise error.Abort(_(b"bookmark '%s' not found") % bookmark)