mercurial/archival.py
changeset 12058 1ef70bdd1e62
parent 11558 d8f6458434ec
child 12321 11db6fa2961e
--- 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')