changeset 2902:2fe4d99ae726

Update extdiff for recent refactoring
author Brendan Cully <brendan@kublai.com>
date Mon, 14 Aug 2006 11:07:15 -0700
parents 9826af4841ef
children ce967d96a1c1
files hgext/extdiff.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/extdiff.py	Mon Aug 14 10:27:02 2006 -0700
+++ b/hgext/extdiff.py	Mon Aug 14 11:07:15 2006 -0700
@@ -33,7 +33,7 @@
 from mercurial.demandload import demandload
 from mercurial.i18n import gettext as _
 from mercurial.node import *
-demandload(globals(), 'mercurial:commands,util os shutil tempfile')
+demandload(globals(), 'mercurial:commands,cmdutil,util os shutil tempfile')
 
 def dodiff(ui, repo, diffcmd, pats, opts):
     def snapshot_node(files, node):
@@ -79,7 +79,7 @@
         return dirname
 
     node1, node2 = commands.revpair(ui, repo, opts['rev'])
-    files, matchfn, anypats = commands.matchpats(repo, pats, opts)
+    files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
     modified, added, removed, deleted, unknown = repo.status(
         node1, node2, files, match=matchfn)[:5]
     if not (modified or added or removed):