diff -r 798ef5b19cb1 -r 1ef70bdd1e62 mercurial/archival.py --- a/mercurial/archival.py Thu Aug 26 23:38:13 2010 +0200 +++ b/mercurial/archival.py Thu Aug 26 23:38:13 2010 +0200 @@ -236,7 +236,7 @@ if repo.ui.configbool("ui", "archivemeta", True): def metadata(): base = 'repo: %s\nnode: %s\nbranch: %s\n' % ( - hex(repo.changelog.node(0)), hex(node), ctx.branch()) + repo[0].hex(), hex(node), ctx.branch()) tags = ''.join('tag: %s\n' % t for t in ctx.tags() if repo.tagtype(t) == 'global')