Commits

Yuya Nishihara  committed 75d87cd

move code for filtering out enabled extensions to common place

  • Participants
  • Parent commits 32d6f01

Comments (0)

Files changed (1)

File hgext/fixfrozenexts.py

             continue
 
         name = m.group(1)
-        if name in extensions._order or name == '__init__':
+        if name == '__init__':
             continue
 
         exts[name] = path
         zf.close()
 
 def _disabledpaths(orig, strip_init=False):
-    exts = _disabledzippedpaths()
+    allexts = _disabledzippedpaths()
+    exts = dict((name, path) for name, path in allexts.iteritems()
+                if name not in extensions._order)
     if not strip_init:
         return exts