Commits

Yuya Nishihara  committed cb85c48

add pre-built hgext/__index__.py support

  • Participants
  • Parent commits ea0fbc4

Comments (0)

Files changed (1)

File hgext/fixfrozenexts.py

     return exts
 
 def _disabledpaths(orig, strip_init=False):
-    allexts = _listzippedexts()
+    try:
+        # generated by thg-winbuild
+        from hgext.__index__ import paths as allexts
+    except ImportError:
+        allexts = _listzippedexts()
+
     exts = dict((name, path) for name, path in allexts.iteritems()
                 if name not in extensions._order)
     if not strip_init:
         file.close()
 
 def _disabledhelp(orig, path):
-    doc = _extractzippeddoc(path)
+    try:
+        # generated by thg-winbuild
+        from hgext.__index__ import docs
+        doc = docs.get(path)
+    except ImportError:
+        doc = _extractzippeddoc(path)
+
     if doc: # extracting localized synopsis
         return gettext(doc).splitlines()[0]
     else: