extdiff: use contexts
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 26 Dec 2006 03:25:44 +0100
changeset 3977 95e6488bc809
parent 3976 f8849648b0e2
child 3978 ee5663cb4406
extdiff: use contexts
hgext/extdiff.py
--- a/hgext/extdiff.py	Tue Dec 26 03:25:13 2006 +0100
+++ b/hgext/extdiff.py	Tue Dec 26 03:25:44 2006 +0100
@@ -56,8 +56,7 @@
 def dodiff(ui, repo, diffcmd, diffopts, pats, opts):
     def snapshot_node(files, node):
         '''snapshot files as of some revision'''
-        changes = repo.changelog.read(node)
-        mf = repo.manifest.read(changes[0])
+        mf = repo.changectx(node).manifest()
         dirname = '%s.%s' % (os.path.basename(repo.root), short(node))
         base = os.path.join(tmproot, dirname)
         os.mkdir(base)