Mercurial > hg
diff mercurial/archival.py @ 6183:0750e4ba9d3d
Add config option to disable putting .hg_archival.txt inside archives.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Thu, 28 Feb 2008 22:39:59 +0100 |
parents | 20b05618b3e2 |
children | f89fd07fc51d |
line wrap: on
line diff
--- 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))