Mercurial > hg-stable
changeset 3977:95e6488bc809
extdiff: use contexts
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 26 Dec 2006 03:25:44 +0100 |
parents | f8849648b0e2 |
children | ee5663cb4406 |
files | hgext/extdiff.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)