# HG changeset patch # User Benoit Boissinot # Date 1167090028 -3600 # Node ID 033082ba1d1a510cc7455ce73f6f526e3202144f # Parent dccb83241dd00d003779d27f9ca298848f7ac277 archival.py: use contexts diff -r dccb83241dd0 -r 033082ba1d1a mercurial/archival.py --- a/mercurial/archival.py Mon Dec 25 17:43:49 2006 +0100 +++ b/mercurial/archival.py Tue Dec 26 00:40:28 2006 +0100 @@ -159,10 +159,9 @@ data = fp.getvalue() archiver.addfile(name, mode, data) - change = repo.changelog.read(node) - mn = change[0] - archiver = archivers[kind](dest, prefix, mtime or change[2][0]) - m = repo.manifest.read(mn) + ctx = repo.changectx(node) + archiver = archivers[kind](dest, prefix, mtime or ctx.date()[0]) + m = ctx.manifest() items = m.items() items.sort() write('.hg_archival.txt', 0644,