Mercurial > hg
comparison mercurial/cmdutil.py @ 32662:9d201b39ccd9
export: map wctx.node() to 'ff...' node id (issue5438)
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 03 Jun 2017 19:17:19 +0900 |
parents | 55ff67ffcead |
children | 041d976b662a |
comparison
equal
deleted
inserted
replaced
32661:a3064fe3e495 | 32662:9d201b39ccd9 |
---|---|
1138 # function as to return a string to be added to the header or None | 1138 # function as to return a string to be added to the header or None |
1139 # it is given two arguments (sequencenumber, changectx) | 1139 # it is given two arguments (sequencenumber, changectx) |
1140 extraexportmap = {} | 1140 extraexportmap = {} |
1141 | 1141 |
1142 def _exportsingle(repo, ctx, match, switch_parent, rev, seqno, write, diffopts): | 1142 def _exportsingle(repo, ctx, match, switch_parent, rev, seqno, write, diffopts): |
1143 node = ctx.node() | 1143 node = scmutil.binnode(ctx) |
1144 parents = [p.node() for p in ctx.parents() if p] | 1144 parents = [p.node() for p in ctx.parents() if p] |
1145 branch = ctx.branch() | 1145 branch = ctx.branch() |
1146 if switch_parent: | 1146 if switch_parent: |
1147 parents.reverse() | 1147 parents.reverse() |
1148 | 1148 |