hgext/extdiff.py
changeset 3877 abaee83ce0a6
parent 3707 67f44b825784
child 3891 6b4127c7d52a
equal deleted inserted replaced
3876:1e0b94cfba0e 3877: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)