Show More
@@ -171,6 +171,8 b' set up some more complex changes to shel' | |||||
171 | $ hg mv b b.rename |
|
171 | $ hg mv b b.rename | |
172 | moving b/b to b.rename/b |
|
172 | moving b/b to b.rename/b | |
173 | $ hg cp c c.copy |
|
173 | $ hg cp c c.copy | |
|
174 | $ hg mv d ghost | |||
|
175 | $ rm ghost | |||
174 | $ hg status -C |
|
176 | $ hg status -C | |
175 | M a/a |
|
177 | M a/a | |
176 | A b.rename/b |
|
178 | A b.rename/b | |
@@ -178,12 +180,20 b' set up some more complex changes to shel' | |||||
178 | A c.copy |
|
180 | A c.copy | |
179 | c |
|
181 | c | |
180 | R b/b |
|
182 | R b/b | |
|
183 | R d | |||
|
184 | ! ghost | |||
|
185 | d | |||
181 |
|
186 | |||
182 |
the common case |
|
187 | the common case - no options or filenames | |
183 |
|
188 | |||
184 | $ hg shelve |
|
189 | $ hg shelve 2>&1 | grep KeyError | |
185 | shelved as default-01 |
|
190 | KeyError: 'No such manifest entry.' (no-pure !) | |
186 | 2 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
191 | raise KeyError (pure !) | |
|
192 | KeyError (pure !) | |||
|
193 | # Get out of the broken state so later tests work | |||
|
194 | $ hg forget b.rename/b c.copy ghost | |||
|
195 | $ hg revert a/a b/b d | |||
|
196 | $ rm a/a.orig b.rename/b c.copy | |||
187 | $ hg status -C |
|
197 | $ hg status -C | |
188 |
|
198 | |||
189 | ensure that our shelved changes exist |
|
199 | ensure that our shelved changes exist | |
@@ -254,6 +264,7 b' removed, even though there are more than' | |||||
254 | A c.copy |
|
264 | A c.copy | |
255 | c |
|
265 | c | |
256 | R b/b |
|
266 | R b/b | |
|
267 | R d | |||
257 | $ hg shelve -l |
|
268 | $ hg shelve -l | |
258 |
|
269 | |||
259 | (both of default.hg and default-1.hg should be still kept, because it |
|
270 | (both of default.hg and default-1.hg should be still kept, because it | |
@@ -287,6 +298,7 b' named shelves, specific filenames, and "' | |||||
287 | A c.copy |
|
298 | A c.copy | |
288 | c |
|
299 | c | |
289 | R b/b |
|
300 | R b/b | |
|
301 | R d | |||
290 | $ HGEDITOR=cat hg shelve -q -n wibble -m wat -e a |
|
302 | $ HGEDITOR=cat hg shelve -q -n wibble -m wat -e a | |
291 | wat |
|
303 | wat | |
292 |
|
304 | |||
@@ -306,6 +318,7 b' expect "a" to no longer be present, but ' | |||||
306 | A c.copy |
|
318 | A c.copy | |
307 | c |
|
319 | c | |
308 | R b/b |
|
320 | R b/b | |
|
321 | R d | |||
309 | $ hg shelve -l --stat |
|
322 | $ hg shelve -l --stat | |
310 | wibble (*) wat (glob) |
|
323 | wibble (*) wat (glob) | |
311 | a/a | 1 + |
|
324 | a/a | 1 + | |
@@ -323,6 +336,7 b' and now "a/a" should reappear' | |||||
323 | A c.copy |
|
336 | A c.copy | |
324 | c |
|
337 | c | |
325 | R b/b |
|
338 | R b/b | |
|
339 | R d | |||
326 |
|
340 | |||
327 | ensure old shelve backups are being deleted automatically |
|
341 | ensure old shelve backups are being deleted automatically | |
328 |
|
342 | |||
@@ -363,6 +377,7 b' force a conflicted merge to occur' | |||||
363 | M b.rename/b |
|
377 | M b.rename/b | |
364 | M c.copy |
|
378 | M c.copy | |
365 | R b/b |
|
379 | R b/b | |
|
380 | R d | |||
366 | ? a/a.orig |
|
381 | ? a/a.orig | |
367 | # The repository is in an unfinished *unshelve* state. |
|
382 | # The repository is in an unfinished *unshelve* state. | |
368 |
|
383 | |||
@@ -381,10 +396,10 b' ensure that we have a merge with unresol' | |||||
381 | #if phasebased |
|
396 | #if phasebased | |
382 | $ hg heads -q --template '{rev}\n' |
|
397 | $ hg heads -q --template '{rev}\n' | |
383 | 8 |
|
398 | 8 | |
384 |
|
|
399 | 6 | |
385 | $ hg parents -q --template '{rev}\n' |
|
400 | $ hg parents -q --template '{rev}\n' | |
386 | 8 |
|
401 | 8 | |
387 |
|
|
402 | 6 | |
388 | #endif |
|
403 | #endif | |
389 |
|
404 | |||
390 | #if stripbased |
|
405 | #if stripbased | |
@@ -401,6 +416,7 b' ensure that we have a merge with unresol' | |||||
401 | M b.rename/b |
|
416 | M b.rename/b | |
402 | M c.copy |
|
417 | M c.copy | |
403 | R b/b |
|
418 | R b/b | |
|
419 | R d | |||
404 | ? a/a.orig |
|
420 | ? a/a.orig | |
405 | $ hg diff |
|
421 | $ hg diff | |
406 | diff --git a/a/a b/a/a |
|
422 | diff --git a/a/a b/a/a | |
@@ -412,13 +428,19 b' ensure that we have a merge with unresol' | |||||
412 | c |
|
428 | c | |
413 | +======= |
|
429 | +======= | |
414 | +a |
|
430 | +a | |
415 |
+>>>>>>> working-copy: |
|
431 | +>>>>>>> working-copy: 203c9f771d2b - shelve: changes to: [mq]: second.patch | |
416 | diff --git a/b/b b/b.rename/b |
|
432 | diff --git a/b/b b/b.rename/b | |
417 | rename from b/b |
|
433 | rename from b/b | |
418 | rename to b.rename/b |
|
434 | rename to b.rename/b | |
419 | diff --git a/c b/c.copy |
|
435 | diff --git a/c b/c.copy | |
420 | copy from c |
|
436 | copy from c | |
421 | copy to c.copy |
|
437 | copy to c.copy | |
|
438 | diff --git a/d b/d | |||
|
439 | deleted file mode 100644 | |||
|
440 | --- a/d | |||
|
441 | +++ /dev/null | |||
|
442 | @@ -1,1 +0,0 @@ | |||
|
443 | -d | |||
422 | $ hg resolve -l |
|
444 | $ hg resolve -l | |
423 | U a/a |
|
445 | U a/a | |
424 |
|
446 | |||
@@ -434,6 +456,7 b' abort the unshelve and be happy' | |||||
434 | M b.rename/b |
|
456 | M b.rename/b | |
435 | M c.copy |
|
457 | M c.copy | |
436 | R b/b |
|
458 | R b/b | |
|
459 | R d | |||
437 | ? a/a.orig |
|
460 | ? a/a.orig | |
438 | $ hg unshelve -a |
|
461 | $ hg unshelve -a | |
439 | unshelve of 'default' aborted |
|
462 | unshelve of 'default' aborted | |
@@ -512,6 +535,7 b' ensure the repo is as we hope' | |||||
512 | c |
|
535 | c | |
513 | A foo/foo |
|
536 | A foo/foo | |
514 | R b/b |
|
537 | R b/b | |
|
538 | R d | |||
515 | ? a/a.orig |
|
539 | ? a/a.orig | |
516 |
|
540 | |||
517 | there should be no shelves left |
|
541 | there should be no shelves left |
General Comments 0
You need to be logged in to leave comments.
Login now