mercurial/archival.py
changeset 12058 1ef70bdd1e62
parent 11558 d8f6458434ec
child 12321 11db6fa2961e
equal deleted inserted replaced
12057:798ef5b19cb1 12058:1ef70bdd1e62
   234     archiver = archivers[kind](dest, mtime or ctx.date()[0])
   234     archiver = archivers[kind](dest, mtime or ctx.date()[0])
   235 
   235 
   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')
   243             if not tags:
   243             if not tags:
   244                 repo.ui.pushbuffer()
   244                 repo.ui.pushbuffer()