Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6746:1dca460e7d1e | 6747:f6c00b17387c |
---|---|
206 data = getdata() | 206 data = getdata() |
207 if decode: | 207 if decode: |
208 data = repo.wwritedata(name, data) | 208 data = repo.wwritedata(name, data) |
209 archiver.addfile(name, mode, islink, data) | 209 archiver.addfile(name, mode, islink, data) |
210 | 210 |
211 ctx = repo.changectx(node) | 211 ctx = repo[node] |
212 if kind not in archivers: | 212 if kind not in archivers: |
213 raise util.Abort(_("unknown archive type '%s'" % kind)) | 213 raise util.Abort(_("unknown archive type '%s'" % kind)) |
214 archiver = archivers[kind](dest, prefix, mtime or ctx.date()[0]) | 214 archiver = archivers[kind](dest, prefix, mtime or ctx.date()[0]) |
215 m = ctx.manifest() | 215 m = ctx.manifest() |
216 items = m.items() | 216 items = m.items() |