# HG changeset patch # User Patrick Mezard # Date 2010-08-26 21:38:13 # Node ID 1ef70bdd1e6263876bc5540d8067075f326bfbfc # Parent 798ef5b19cb17d99243d6b45945fbc8cc2207fa2 archival: do not use repo.changelog directly diff --git a/mercurial/archival.py b/mercurial/archival.py --- a/mercurial/archival.py +++ b/mercurial/archival.py @@ -236,7 +236,7 @@ def archive(repo, dest, node, kind, deco 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')