comparison hgext/extdiff.py @ 3886:abaee83ce0a6

Replace demandload with new demandimport
author Matt Mackall <mpm@selenic.com>
date Wed, 13 Dec 2006 13:27:09 -0600
parents 67f44b825784
children 6b4127c7d52a
comparison
equal deleted inserted replaced
3885:1e0b94cfba0e 3886:abaee83ce0a6
46 # You can use -I/-X and list of file or directory names like normal 46 # You can use -I/-X and list of file or directory names like normal
47 # "hg diff" command. The `extdiff' extension makes snapshots of only 47 # "hg diff" command. The `extdiff' extension makes snapshots of only
48 # needed files, so running the external diff program will actually be 48 # needed files, so running the external diff program will actually be
49 # pretty fast (at least faster than having to compare the entire tree). 49 # pretty fast (at least faster than having to compare the entire tree).
50 50
51 from mercurial.demandload import demandload
52 from mercurial.i18n import gettext as _ 51 from mercurial.i18n import gettext as _
53 from mercurial.node import * 52 from mercurial.node import *
54 demandload(globals(), 'mercurial:cmdutil,util os shutil tempfile') 53 from mercurial import cmdutil, util
54 import os, shutil, tempfile
55 55
56 def dodiff(ui, repo, diffcmd, diffopts, pats, opts): 56 def dodiff(ui, repo, diffcmd, diffopts, pats, opts):
57 def snapshot_node(files, node): 57 def snapshot_node(files, node):
58 '''snapshot files as of some revision''' 58 '''snapshot files as of some revision'''
59 changes = repo.changelog.read(node) 59 changes = repo.changelog.read(node)