--- a/mercurial/archival.py Thu Feb 28 19:08:04 2008 +0100
+++ b/mercurial/archival.py Thu Feb 28 22:39:59 2008 +0100
@@ -214,8 +214,10 @@
m = ctx.manifest()
items = m.items()
items.sort()
- write('.hg_archival.txt', 0644, False,
- lambda: 'repo: %s\nnode: %s\n' % (hex(repo.changelog.node(0)), hex(node)))
+ if repo.ui.configbool("ui", "archivemeta", True):
+ write('.hg_archival.txt', 0644, False,
+ lambda: 'repo: %s\nnode: %s\n' % (
+ hex(repo.changelog.node(0)), hex(node)))
for filename, filenode in items:
write(filename, m.execf(filename) and 0755 or 0644, m.linkf(filename),
lambda: repo.file(filename).read(filenode))