##// END OF EJS Templates
fix: add some new test cases...
Danny Hooper -
r42890:4b04244f default
parent child Browse files
Show More
@@ -439,6 +439,18 b' Test that --whole fixes all lines regard'
439 439 $ printf "a\nb\nc\nd\ne\nf\ng\n" > foo.changed
440 440 $ hg commit -Aqm "foo"
441 441 $ printf "zz\na\nc\ndd\nee\nff\nf\ngg\n" > foo.changed
442
443 $ hg fix --working-dir
444 $ cat foo.changed
445 ZZ
446 a
447 c
448 DD
449 EE
450 FF
451 f
452 GG
453
442 454 $ hg fix --working-dir --whole
443 455 $ cat foo.changed
444 456 ZZ
@@ -526,6 +538,21 b' have changes.'
526 538
527 539 $ cd ..
528 540
541 If we try to fix a missing file, we still fix other files.
542
543 $ hg init fixmissingfile
544 $ cd fixmissingfile
545
546 $ printf "fix me!\n" > foo.whole
547 $ hg add
548 adding foo.whole
549 $ hg fix --working-dir foo.whole bar.whole
550 bar.whole: $ENOENT$
551 $ cat *.whole
552 FIX ME!
553
554 $ cd ..
555
529 556 Specifying a directory name should fix all its files and subdirectories.
530 557
531 558 $ hg init fixdirectory
General Comments 0
You need to be logged in to leave comments. Login now