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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Nov 12 21:34:00 UTC 2019


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

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)



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


More information about the Mercurial-devel mailing list