##// END OF EJS Templates
tests: add more tests of uncommit/unamend with copies...
Martin von Zweigbergk -
r41369:c7d425f7 default
parent child Browse files
Show More
@@ -372,3 +372,40 b' Retained copies in working directoy'
372 rename to wat
372 rename to wat
373 $ hg revert -qa
373 $ hg revert -qa
374 $ rm foobar wat
374 $ rm foobar wat
375
376 Rename a->b, then amend b->c. After unamend, should look like b->c.
377
378 $ hg co -q 0
379 $ hg mv a b
380 $ hg ci -qm 'move to a b'
381 $ hg mv b c
382 $ hg amend
383 $ hg unamend
384 $ hg st --copies --change .
385 A b
386 a
387 R a
388 BROKEN: should indicate that b was renamed to c
389 $ hg st --copies
390 A c
391 R b
392 $ hg revert -qa
393 $ rm c
394
395 Rename a->b, then amend b->c, and working copy change c->d. After unamend, should look like b->d
396
397 $ hg co -q 0
398 $ hg mv a b
399 $ hg ci -qm 'move to a b'
400 $ hg mv b c
401 $ hg amend
402 $ hg mv c d
403 $ hg unamend
404 $ hg st --copies --change .
405 A b
406 a
407 R a
408 BROKEN: should indicate that b was renamed to d
409 $ hg st --copies
410 A d
411 R b
@@ -398,3 +398,43 b' Add and expect uncommit to fail on both '
398 |/
398 |/
399 o 0:ea4e33293d4d274a2ba73150733c2612231f398c a 1
399 o 0:ea4e33293d4d274a2ba73150733c2612231f398c a 1
400
400
401
402 Rename a->b, then remove b in working copy. Result should remove a.
403
404 $ hg co -q 0
405 $ hg mv a b
406 $ hg ci -qm 'move a to b'
407 $ hg rm b
408 $ hg uncommit --config experimental.uncommitondirtywdir=True
409 $ hg st --copies
410 R a
411 $ hg revert a
412
413 Rename a->b, then rename b->c in working copy. Result should rename a->c.
414
415 $ hg co -q 0
416 $ hg mv a b
417 $ hg ci -qm 'move a to b'
418 $ hg mv b c
419 $ hg uncommit --config experimental.uncommitondirtywdir=True
420 $ hg st --copies
421 A c
422 a
423 R a
424 $ hg revert a
425 $ hg forget c
426 $ rm c
427
428 Copy a->b1 and a->b2, then rename b1->c in working copy. Result should copy a->b2 and a->c.
429
430 $ hg co -q 0
431 $ hg cp a b1
432 $ hg cp a b2
433 $ hg ci -qm 'move a to b1 and b2'
434 $ hg mv b1 c
435 $ hg uncommit --config experimental.uncommitondirtywdir=True
436 $ hg st --copies
437 A b2
438 a
439 A c
440 a
General Comments 0
You need to be logged in to leave comments. Login now