hgext/hgk.py
changeset 2894 75bcb8210a37
parent 2874 3d6efcbbd1c9
parent 2893 2497fa1c6b76
child 3009 abcd6ae3cf5a
--- a/hgext/hgk.py
+++ b/hgext/hgk.py
@@ -5,8 +5,9 @@
 # This software may be used and distributed according to the terms
 # of the GNU General Public License, incorporated herein by reference.
 
-import time, sys, signal, os
-from mercurial import hg, mdiff, fancyopts, commands, ui, util
+from mercurial.demandload import *
+demandload(globals(), 'time sys signal os')
+demandload(globals(), 'mercurial:hg,mdiff,fancyopts,commands,ui,util')
 
 def dodiff(fp, ui, repo, node1, node2, files=None, match=util.always,
            changes=None, text=False):