comparison hgext/hgk.py @ 2893:2497fa1c6b76

Use demandload in hgk
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Tue, 15 Aug 2006 05:12:27 -0400
parents b5779a04f208
children 75bcb8210a37
comparison
equal deleted inserted replaced
2853:e3fb4223e750 2893:2497fa1c6b76
3 # Copyright 2005 Chris Mason <mason@suse.com> 3 # Copyright 2005 Chris Mason <mason@suse.com>
4 # 4 #
5 # This software may be used and distributed according to the terms 5 # This software may be used and distributed according to the terms
6 # of the GNU General Public License, incorporated herein by reference. 6 # of the GNU General Public License, incorporated herein by reference.
7 7
8 import time, sys, signal, os 8 from mercurial.demandload import *
9 from mercurial import hg, mdiff, fancyopts, commands, ui, util 9 demandload(globals(), 'time sys signal os')
10 demandload(globals(), 'mercurial:hg,mdiff,fancyopts,commands,ui,util')
10 11
11 def dodiff(fp, ui, repo, node1, node2, files=None, match=util.always, 12 def dodiff(fp, ui, repo, node1, node2, files=None, match=util.always,
12 changes=None, text=False): 13 changes=None, text=False):
13 def date(c): 14 def date(c):
14 return time.asctime(time.gmtime(c[2][0])) 15 return time.asctime(time.gmtime(c[2][0]))