Show More
@@ -162,3 +162,57 b' Check that successful tool otherwise all' | |||||
162 | merging b |
|
162 | merging b | |
163 | $TESTTMP/repo/a *a~base* *a~other* (glob) |
|
163 | $TESTTMP/repo/a *a~base* *a~other* (glob) | |
164 | $TESTTMP/repo/b *b~base* *b~other* (glob) |
|
164 | $TESTTMP/repo/b *b~base* *b~other* (glob) | |
|
165 | ||||
|
166 | Check that unshelve isn't broken by halting the merge | |||
|
167 | $ cat <<EOS >> $HGRCPATH | |||
|
168 | > [extensions] | |||
|
169 | > shelve = | |||
|
170 | > EOS | |||
|
171 | $ echo foo > shelve_file1 | |||
|
172 | $ echo foo > shelve_file2 | |||
|
173 | $ hg ci -qAm foo | |||
|
174 | $ echo bar >> shelve_file1 | |||
|
175 | $ echo bar >> shelve_file2 | |||
|
176 | $ hg shelve --list | |||
|
177 | $ hg shelve | |||
|
178 | shelved as default | |||
|
179 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
180 | $ echo baz >> shelve_file1 | |||
|
181 | $ echo baz >> shelve_file2 | |||
|
182 | $ hg ci -m baz | |||
|
183 | $ hg unshelve --tool false --config merge-tools.false.premerge=keep | |||
|
184 | unshelving change 'default' | |||
|
185 | rebasing shelved changes | |||
|
186 | merging shelve_file1 | |||
|
187 | merging shelve_file2 | |||
|
188 | merging shelve_file1 failed! | |||
|
189 | merge halted after failed merge (see hg resolve) | |||
|
190 | [240] | |||
|
191 | FIXME: This should claim it's in an 'unshelve' state | |||
|
192 | $ hg status --config commands.status.verbose=True | |||
|
193 | M shelve_file1 | |||
|
194 | M shelve_file2 | |||
|
195 | ? shelve_file1.orig | |||
|
196 | ? shelve_file2.orig | |||
|
197 | # The repository is in an unfinished *update* state. | |||
|
198 | ||||
|
199 | # Unresolved merge conflicts: | |||
|
200 | # | |||
|
201 | # shelve_file1 | |||
|
202 | # shelve_file2 | |||
|
203 | # | |||
|
204 | # To mark files as resolved: hg resolve --mark FILE | |||
|
205 | ||||
|
206 | # To continue: hg update . | |||
|
207 | ||||
|
208 | FIXME: This should not be referencing a stripped commit. | |||
|
209 | $ hg resolve --tool false --all --re-merge | |||
|
210 | abort: unknown revision '4a1d727ea5bb6aed9adfacb2a8f776bae44301d6' | |||
|
211 | [255] | |||
|
212 | Ensure the shelve is still around, since we haven't finished the operation yet. | |||
|
213 | $ hg shelve --list | |||
|
214 | default (* ago) changes to: foo (glob) | |||
|
215 | FIXME: `hg unshelve --abort` should work. | |||
|
216 | $ hg unshelve --abort | |||
|
217 | abort: no unshelve in progress | |||
|
218 | [20] |
General Comments 0
You need to be logged in to leave comments.
Login now