Show More
@@ -1140,7 +1140,7 b' extraexport = []' | |||
|
1140 | 1140 | extraexportmap = {} |
|
1141 | 1141 | |
|
1142 | 1142 | def _exportsingle(repo, ctx, match, switch_parent, rev, seqno, write, diffopts): |
|
1143 |
node = ctx |
|
|
1143 | node = scmutil.binnode(ctx) | |
|
1144 | 1144 | parents = [p.node() for p in ctx.parents() if p] |
|
1145 | 1145 | branch = ctx.branch() |
|
1146 | 1146 | if switch_parent: |
@@ -137,6 +137,28 b' Exporting revision -2 to a file:' | |||
|
137 | 137 | foo-9 |
|
138 | 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 | 162 | No filename should be printed if stdout is specified explicitly: |
|
141 | 163 | |
|
142 | 164 | $ hg export -v 1 -o - |
General Comments 0
You need to be logged in to leave comments.
Login now