Mercurial > public > mercurial-scm > hg-stable
diff mercurial/archival.py @ 6747:f6c00b17387c
use repo[changeid] to get a changectx
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jun 2008 14:35:46 -0500 |
parents | 315548fcc76b |
children | 51b0e799352f |
line wrap: on
line diff
--- a/mercurial/archival.py Thu Jun 26 13:58:24 2008 -0500 +++ b/mercurial/archival.py Thu Jun 26 14:35:46 2008 -0500 @@ -208,7 +208,7 @@ data = repo.wwritedata(name, data) archiver.addfile(name, mode, islink, data) - ctx = repo.changectx(node) + ctx = repo[node] if kind not in archivers: raise util.Abort(_("unknown archive type '%s'" % kind)) archiver = archivers[kind](dest, prefix, mtime or ctx.date()[0])