mercurial/hook.py
changeset 37120 a8a902d7176e
parent 37119 d4a2e0d5d042
child 37463 bbd240f81ac5
--- a/mercurial/hook.py	Sat Mar 24 15:09:33 2018 +0900
+++ b/mercurial/hook.py	Sat Mar 24 15:10:51 2018 +0900
@@ -44,7 +44,7 @@
                 % (hname, funcname))
         modname = funcname[:d]
         oldpaths = sys.path
-        if util.mainfrozen():
+        if procutil.mainfrozen():
             # binary installs require sys.path manipulation
             modpath, modfile = os.path.split(modname)
             if modpath and modfile:
@@ -154,7 +154,7 @@
     ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n',
            name, cmd, duration)
     if r:
-        desc, r = util.explainexit(r)
+        desc, r = procutil.explainexit(r)
         if throw:
             raise error.HookAbort(_('%s hook %s') % (name, desc))
         ui.warn(_('warning: %s hook %s\n') % (name, desc))