hgext/hgk.py
changeset 2894 75bcb8210a37
parent 2874 3d6efcbbd1c9
parent 2893 2497fa1c6b76
child 3009 abcd6ae3cf5a
equal deleted inserted replaced
2892:8b02af865990 2894:75bcb8210a37
     3 # Copyright 2005, 2006 Chris Mason <mason@suse.com>
     3 # Copyright 2005, 2006 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]))