changeset 12058:1ef70bdd1e62

archival: do not use repo.changelog directly
author Patrick Mezard <pmezard@gmail.com>
date Thu, 26 Aug 2010 23:38:13 +0200
parents 798ef5b19cb1
children 0de6cfdcaad8
files mercurial/archival.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')