Show More
@@ -612,6 +612,7 b" def export(repo, revs, template='hg-%h.p" | |||||
612 | ctx = repo.changectx(rev) |
|
612 | ctx = repo.changectx(rev) | |
613 | node = ctx.node() |
|
613 | node = ctx.node() | |
614 | parents = [p.node() for p in ctx.parents() if p] |
|
614 | parents = [p.node() for p in ctx.parents() if p] | |
|
615 | branch = ctx.branch() | |||
615 | if switch_parent: |
|
616 | if switch_parent: | |
616 | parents.reverse() |
|
617 | parents.reverse() | |
617 | prev = (parents and parents[0]) or nullid |
|
618 | prev = (parents and parents[0]) or nullid | |
@@ -625,6 +626,8 b" def export(repo, revs, template='hg-%h.p" | |||||
625 | fp.write("# HG changeset patch\n") |
|
626 | fp.write("# HG changeset patch\n") | |
626 | fp.write("# User %s\n" % ctx.user()) |
|
627 | fp.write("# User %s\n" % ctx.user()) | |
627 | fp.write("# Date %d %d\n" % ctx.date()) |
|
628 | fp.write("# Date %d %d\n" % ctx.date()) | |
|
629 | if branch and (branch != 'default'): | |||
|
630 | fp.write("# Branch %s\n" % branch) | |||
628 | fp.write("# Node ID %s\n" % hex(node)) |
|
631 | fp.write("# Node ID %s\n" % hex(node)) | |
629 | fp.write("# Parent %s\n" % hex(prev)) |
|
632 | fp.write("# Parent %s\n" % hex(prev)) | |
630 | if len(parents) > 1: |
|
633 | if len(parents) > 1: |
General Comments 0
You need to be logged in to leave comments.
Login now