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 from mercurial.demandload import * |
8 import time, sys, signal, os |
9 demandload(globals(), 'time sys signal os') |
9 from mercurial import hg, fancyopts, commands, ui, util, patch, revlog |
10 demandload(globals(), 'mercurial:hg,fancyopts,commands,ui,util,patch,revlog') |
|
11 |
10 |
12 def difftree(ui, repo, node1=None, node2=None, *files, **opts): |
11 def difftree(ui, repo, node1=None, node2=None, *files, **opts): |
13 """diff trees from two commits""" |
12 """diff trees from two commits""" |
14 def __difftree(repo, node1, node2, files=[]): |
13 def __difftree(repo, node1, node2, files=[]): |
15 if node2: |
14 if node2: |