Mercurial > hg
comparison mercurial/archival.py @ 2956:6dddcba7596a
merge.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 18 Aug 2006 21:17:28 -0700 |
parents | 18cf5349a361 |
children | 1d2fdea875bc |
comparison
equal
deleted
inserted
replaced
2955:9d1c3529ebbc | 2956:6dddcba7596a |
---|---|
161 archiver.addfile(name, mode, data) | 161 archiver.addfile(name, mode, data) |
162 | 162 |
163 change = repo.changelog.read(node) | 163 change = repo.changelog.read(node) |
164 mn = change[0] | 164 mn = change[0] |
165 archiver = archivers[kind](dest, prefix, mtime or change[2][0]) | 165 archiver = archivers[kind](dest, prefix, mtime or change[2][0]) |
166 mf = repo.manifest.read(mn).items() | 166 m = repo.manifest.read(mn) |
167 mff = repo.manifest.readflags(mn) | 167 items = m.items() |
168 mf.sort() | 168 items.sort() |
169 write('.hg_archival.txt', 0644, | 169 write('.hg_archival.txt', 0644, |
170 'repo: %s\nnode: %s\n' % (hex(repo.changelog.node(0)), hex(node))) | 170 'repo: %s\nnode: %s\n' % (hex(repo.changelog.node(0)), hex(node))) |
171 for filename, filenode in mf: | 171 for filename, filenode in items: |
172 write(filename, mff[filename] and 0755 or 0644, | 172 write(filename, m.execf(filename) and 0755 or 0644, |
173 repo.file(filename).read(filenode)) | 173 repo.file(filename).read(filenode)) |
174 archiver.done() | 174 archiver.done() |