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])) |