mercurial/archival.py
changeset 33363 3047167733dc
parent 31235 7feab0e7702d
child 33499 0407a51b9d8c
equal deleted inserted replaced
33362:e48fb90f80c8 33363:3047167733dc
    81     '''build content of .hg_archival.txt'''
    81     '''build content of .hg_archival.txt'''
    82     repo = ctx.repo()
    82     repo = ctx.repo()
    83     hex = ctx.hex()
    83     hex = ctx.hex()
    84     if ctx.rev() is None:
    84     if ctx.rev() is None:
    85         hex = ctx.p1().hex()
    85         hex = ctx.p1().hex()
    86         if ctx.dirty():
    86         if ctx.dirty(missing=True):
    87             hex += '+'
    87             hex += '+'
    88 
    88 
    89     base = 'repo: %s\nnode: %s\nbranch: %s\n' % (
    89     base = 'repo: %s\nnode: %s\nbranch: %s\n' % (
    90         _rootctx(repo).hex(), hex, encoding.fromlocal(ctx.branch()))
    90         _rootctx(repo).hex(), hex, encoding.fromlocal(ctx.branch()))
    91 
    91