[PATCH 3 of 3] dispatch: remove unused _loaded

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Fri Jun 23 13:48:57 EDT 2017


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1498239561 -32400
#      Sat Jun 24 02:39:21 2017 +0900
# Node ID 451cc6a8cafb173b015d76fc667ef111db297dc3
# Parent  bd02107d5a20adff17f744a422b2530284215a7a
dispatch: remove unused _loaded

Now, there is no user for dispatch._loaded.

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -720,8 +720,6 @@ def _checkshellalias(lui, ui, args):
         return lambda: runcommand(lui, None, cmd, args[:1], ui, options, d,
                                   [], {})
 
-_loaded = set()
-
 def _dispatch(req):
     args = req.args
     ui = req.ui
@@ -746,8 +744,7 @@ def _dispatch(req):
     profile = lui.configbool('profiling', 'enabled')
     with profiling.profile(lui, enabled=profile) as profiler:
         # Configure extensions in phases: uisetup, extsetup, cmdtable, and
-        # reposetup. Programs like TortoiseHg will call _dispatch several
-        # times so we keep track of configured extensions in _loaded.
+        # reposetup
         extensions.loadall(lui)
         # Propagate any changes to lui.__class__ by extensions
         ui.__class__ = lui.__class__


More information about the Mercurial-devel mailing list