From patchwork Tue Oct 22 17:57:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D7149: export: use unfiltered repo if we're exporting the working copy parent From: phabricator X-Patchwork-Id: 42535 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Tue, 22 Oct 2019 17:57:06 +0000 martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Same reasoning as in the previous patch. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D7149 AFFECTED FILES mercurial/commands.py CHANGE DETAILS To: martinvonz, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2621,6 +2621,11 @@ if bookmark and changesets: raise error.Abort(_(b"-r and -B are mutually exclusive")) + if not bookmark and not changesets: + # Avoid loading obsmarkers if we're accessing only the working copy + # parent (which will never be hidden). + repo = repo.unfiltered() + if bookmark: if bookmark not in repo._bookmarks: raise error.Abort(_(b"bookmark '%s' not found") % bookmark)