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