changeset 2908:2497fa1c6b76

Use demandload in hgk
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Tue, 15 Aug 2006 05:12:27 -0400
parents e3fb4223e750
children 75bcb8210a37
files hgext/hgk.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/hgk.py	Fri Aug 11 11:00:38 2006 -0500
+++ b/hgext/hgk.py	Tue Aug 15 05:12:27 2006 -0400
@@ -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):