##// END OF EJS Templates
tests: omit -p for external diff via extdiff extension for portability...
FUJIWARA Katsunori -
r28033:0707bbec default
parent child Browse files
Show More
@@ -176,6 +176,8 b' utestpats = ['
176 176 'write "file:/*/$TESTTMP" + (glob) to match on windows too'),
177 177 (r'^ (cat|find): .*: No such file or directory',
178 178 'use test -f to test for file existence'),
179 (r'^ diff -[^ -]*p',
180 "don't use (external) diff with -p for portability"),
179 181 ],
180 182 # warnings
181 183 [
@@ -1,3 +1,9 b''
1 $ cat >> $HGRCPATH <<EOF
2 > [defaults]
3 > # for portability
4 > extdiff = --option -Nru
5 > EOF
6
1 7 Create a repo with some stuff in it:
2 8
3 9 $ hg init a
@@ -6,6 +6,9 b' directory (and ".hg/largefiles/dirstate"'
6 6 > merge = internal:fail
7 7 > [extensions]
8 8 > largefiles =
9 > [defaults]
10 > # for portability
11 > extdiff = --option -Nru
9 12 > EOF
10 13
11 14 $ hg init repo
@@ -21,13 +24,13 b' directory (and ".hg/largefiles/dirstate"'
21 24 $ echo 'normal1 in #1' > normal1
22 25 $ hg commit -m '#1'
23 26 $ hg extdiff -r '.^' --config extensions.extdiff=
24 diff -Npru repo.0d9d9b8dc9a3/.hglf/large1 repo/.hglf/large1
27 diff -Nru repo.0d9d9b8dc9a3/.hglf/large1 repo/.hglf/large1
25 28 --- repo.0d9d9b8dc9a3/.hglf/large1 * (glob)
26 29 +++ repo/.hglf/large1 * (glob)
27 30 @@ -1 +1 @@
28 31 -4669e532d5b2c093a78eca010077e708a071bb64
29 32 +58e24f733a964da346e2407a2bee99d9001184f5
30 diff -Npru repo.0d9d9b8dc9a3/normal1 repo/normal1
33 diff -Nru repo.0d9d9b8dc9a3/normal1 repo/normal1
31 34 --- repo.0d9d9b8dc9a3/normal1 * (glob)
32 35 +++ repo/normal1 * (glob)
33 36 @@ -1 +1 @@
@@ -1,3 +1,9 b''
1 $ cat >> $HGRCPATH <<EOF
2 > [defaults]
3 > # for portability
4 > extdiff = --option -Nru
5 > EOF
6
1 7 Preparing the subrepository 'sub2'
2 8
3 9 $ hg init sub2
@@ -714,13 +720,13 b' Interaction with extdiff, largefiles and'
714 720 $ hg --config extensions.extdiff= extdiff -S
715 721
716 722 $ hg --config extensions.extdiff= extdiff -r '.^' -S
717 diff -Npru cloned.*/.hgsub cloned/.hgsub (glob)
723 diff -Nru cloned.*/.hgsub cloned/.hgsub (glob)
718 724 --- cloned.*/.hgsub * +0000 (glob)
719 725 +++ cloned/.hgsub * +0000 (glob)
720 726 @@ -1,2 +1 @@
721 727 sub1 = ../sub1
722 728 -sub3 = sub3
723 diff -Npru cloned.*/.hgsubstate cloned/.hgsubstate (glob)
729 diff -Nru cloned.*/.hgsubstate cloned/.hgsubstate (glob)
724 730 --- cloned.*/.hgsubstate * +0000 (glob)
725 731 +++ cloned/.hgsubstate * +0000 (glob)
726 732 @@ -1,2 +1 @@
@@ -729,63 +735,63 b' Interaction with extdiff, largefiles and'
729 735 [1]
730 736
731 737 $ hg --config extensions.extdiff= extdiff -r 0 -r '.^' -S
732 diff -Npru cloned.*/.hglf/b.dat cloned.*/.hglf/b.dat (glob)
738 diff -Nru cloned.*/.hglf/b.dat cloned.*/.hglf/b.dat (glob)
733 739 --- cloned.*/.hglf/b.dat * (glob)
734 740 +++ cloned.*/.hglf/b.dat * (glob)
735 741 @@ -0,0 +1 @@
736 742 +da39a3ee5e6b4b0d3255bfef95601890afd80709
737 diff -Npru cloned.*/.hglf/foo/bar/large.dat cloned.*/.hglf/foo/bar/large.dat (glob)
743 diff -Nru cloned.*/.hglf/foo/bar/large.dat cloned.*/.hglf/foo/bar/large.dat (glob)
738 744 --- cloned.*/.hglf/foo/bar/large.dat * (glob)
739 745 +++ cloned.*/.hglf/foo/bar/large.dat * (glob)
740 746 @@ -0,0 +1 @@
741 747 +2f6933b5ee0f5fdd823d9717d8729f3c2523811b
742 diff -Npru cloned.*/.hglf/large.bin cloned.*/.hglf/large.bin (glob)
748 diff -Nru cloned.*/.hglf/large.bin cloned.*/.hglf/large.bin (glob)
743 749 --- cloned.*/.hglf/large.bin * (glob)
744 750 +++ cloned.*/.hglf/large.bin * (glob)
745 751 @@ -0,0 +1 @@
746 752 +7f7097b041ccf68cc5561e9600da4655d21c6d18
747 diff -Npru cloned.*/.hgsub cloned.*/.hgsub (glob)
753 diff -Nru cloned.*/.hgsub cloned.*/.hgsub (glob)
748 754 --- cloned.*/.hgsub * (glob)
749 755 +++ cloned.*/.hgsub * (glob)
750 756 @@ -1 +1,2 @@
751 757 sub1 = ../sub1
752 758 +sub3 = sub3
753 diff -Npru cloned.*/.hgsubstate cloned.*/.hgsubstate (glob)
759 diff -Nru cloned.*/.hgsubstate cloned.*/.hgsubstate (glob)
754 760 --- cloned.*/.hgsubstate * (glob)
755 761 +++ cloned.*/.hgsubstate * (glob)
756 762 @@ -1 +1,2 @@
757 763 -fc3b4ce2696f7741438c79207583768f2ce6b0dd sub1
758 764 +7a36fa02b66e61f27f3d4a822809f159479b8ab2 sub1
759 765 +b1a26de6f2a045a9f079323693614ee322f1ff7e sub3
760 diff -Npru cloned.*/foo/bar/def cloned.*/foo/bar/def (glob)
766 diff -Nru cloned.*/foo/bar/def cloned.*/foo/bar/def (glob)
761 767 --- cloned.*/foo/bar/def * (glob)
762 768 +++ cloned.*/foo/bar/def * (glob)
763 769 @@ -0,0 +1 @@
764 770 +changed
765 diff -Npru cloned.*/main cloned.*/main (glob)
771 diff -Nru cloned.*/main cloned.*/main (glob)
766 772 --- cloned.*/main * (glob)
767 773 +++ cloned.*/main * (glob)
768 774 @@ -1 +1 @@
769 775 -main
770 776 +foo
771 diff -Npru cloned.*/sub1/.hgsubstate cloned.*/sub1/.hgsubstate (glob)
777 diff -Nru cloned.*/sub1/.hgsubstate cloned.*/sub1/.hgsubstate (glob)
772 778 --- cloned.*/sub1/.hgsubstate * (glob)
773 779 +++ cloned.*/sub1/.hgsubstate * (glob)
774 780 @@ -1 +1 @@
775 781 -c57a0840e3badd667ef3c3ef65471609acb2ba3c sub2
776 782 +c77908c81ccea3794a896c79e98b0e004aee2e9e sub2
777 diff -Npru cloned.*/sub1/sub2/folder/test.txt cloned.*/sub1/sub2/folder/test.txt (glob)
783 diff -Nru cloned.*/sub1/sub2/folder/test.txt cloned.*/sub1/sub2/folder/test.txt (glob)
778 784 --- cloned.*/sub1/sub2/folder/test.txt * (glob)
779 785 +++ cloned.*/sub1/sub2/folder/test.txt * (glob)
780 786 @@ -0,0 +1 @@
781 787 +subfolder
782 diff -Npru cloned.*/sub1/sub2/sub2 cloned.*/sub1/sub2/sub2 (glob)
788 diff -Nru cloned.*/sub1/sub2/sub2 cloned.*/sub1/sub2/sub2 (glob)
783 789 --- cloned.*/sub1/sub2/sub2 * (glob)
784 790 +++ cloned.*/sub1/sub2/sub2 * (glob)
785 791 @@ -1 +1 @@
786 792 -sub2
787 793 +modified
788 diff -Npru cloned.*/sub3/a.txt cloned.*/sub3/a.txt (glob)
794 diff -Nru cloned.*/sub3/a.txt cloned.*/sub3/a.txt (glob)
789 795 --- cloned.*/sub3/a.txt * (glob)
790 796 +++ cloned.*/sub3/a.txt * (glob)
791 797 @@ -0,0 +1 @@
General Comments 0
You need to be logged in to leave comments. Login now