##// END OF EJS Templates
archival: do not use repo.changelog directly
Patrick Mezard -
r12058:1ef70bdd default
parent child Browse files
Show More
@@ -236,7 +236,7 b' def archive(repo, dest, node, kind, deco'
236 if repo.ui.configbool("ui", "archivemeta", True):
236 if repo.ui.configbool("ui", "archivemeta", True):
237 def metadata():
237 def metadata():
238 base = 'repo: %s\nnode: %s\nbranch: %s\n' % (
238 base = 'repo: %s\nnode: %s\nbranch: %s\n' % (
239 hex(repo.changelog.node(0)), hex(node), ctx.branch())
239 repo[0].hex(), hex(node), ctx.branch())
240
240
241 tags = ''.join('tag: %s\n' % t for t in ctx.tags()
241 tags = ''.join('tag: %s\n' % t for t in ctx.tags()
242 if repo.tagtype(t) == 'global')
242 if repo.tagtype(t) == 'global')
General Comments 0
You need to be logged in to leave comments. Login now