Patchwork D4172: debugcommands: force import of fileset in debugfileset

login
register
mail settings
Submitter phabricator
Date Aug. 9, 2018, 6:10 p.m.
Message ID <f1bc381f83a2486d47db492158514014@localhost.localdomain>
Download mbox | patch
Permalink /patch/33487/
State Not Applicable
Headers show

Comments

phabricator - Aug. 9, 2018, 6:10 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4d992e3f10ba: debugcommands: force import of fileset in debugfileset (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4172?vs=10104&id=10136

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

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -896,6 +896,8 @@ 
     _('[-r REV] [--all-files] [OPTION]... FILESPEC'))
 def debugfileset(ui, repo, expr, **opts):
     '''parse and apply a fileset specification'''
+    from . import fileset
+    fileset.symbols # force import of fileset so we have predicates to optimize
     opts = pycompat.byteskwargs(opts)
     ctx = scmutil.revsingle(repo, opts.get('rev'), None)