Patchwork D7149: export: use unfiltered repo if we're exporting the working copy parent

login
register
mail settings
Submitter phabricator
Date Nov. 12, 2019, 9:34 p.m.
Message ID <9fbcae1b53dc4d872dd7c98c5d20f4d6@localhost.localdomain>
Download mbox | patch
Permalink /patch/43150/
State Not Applicable
Headers show

Comments

phabricator - Nov. 12, 2019, 9:34 p.m.
martinvonz edited the summary of this revision.
martinvonz updated this revision to Diff 18047.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7149?vs=17370&id=18047

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7149/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7149

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: marmoute, mercurial-devel

Patch

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)