# HG changeset patch # User Benoit Boissinot # Date 1167099944 -3600 # Node ID 95e6488bc8090e27fcf4cde9e9a4bfe3bcd57af7 # Parent f8849648b0e23a4663f83bf46f0a48df47cd2ece extdiff: use contexts diff -r f8849648b0e2 -r 95e6488bc809 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)