##// END OF EJS Templates
export: map wctx.node() to 'ff...' node id (issue5438)
Yuya Nishihara -
r32660:9d201b39 default
parent child Browse files
Show More
@@ -1140,7 +1140,7 b' extraexport = []'
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:
@@ -137,6 +137,28 b' Exporting revision -2 to a file:'
137 foo-9
137 foo-9
138 +foo-10
138 +foo-10
139
139
140 Exporting wdir revision:
141
142 $ echo "foo-wdir" >> foo
143 $ hg export 'wdir()'
144 # HG changeset patch
145 # User test
146 # Date 0 0
147 # Thu Jan 01 00:00:00 1970 +0000
148 # Node ID ffffffffffffffffffffffffffffffffffffffff
149 # Parent f3acbafac161ec68f1598af38f794f28847ca5d3
150
151
152 diff -r f3acbafac161 foo
153 --- a/foo Thu Jan 01 00:00:00 1970 +0000
154 +++ b/foo Thu Jan 01 00:00:00 1970 +0000
155 @@ -10,3 +10,4 @@
156 foo-9
157 foo-10
158 foo-11
159 +foo-wdir
160 $ hg revert -q foo
161
140 No filename should be printed if stdout is specified explicitly:
162 No filename should be printed if stdout is specified explicitly:
141
163
142 $ hg export -v 1 -o -
164 $ hg export -v 1 -o -
General Comments 0
You need to be logged in to leave comments. Login now