##// END OF EJS Templates
test-merge-force: add tests for merge.checkunknown=warn...
Siddharth Agarwal -
r28021:d0d805df default
parent child Browse files
Show More
@@ -141,7 +141,7 Merge with remote
141 # - local and remote changed content1_content2_*_content2-untracked
141 # - local and remote changed content1_content2_*_content2-untracked
142 # in the same way, so it could potentially be left alone
142 # in the same way, so it could potentially be left alone
143
143
144 $ hg merge -f --tool internal:merge3 'desc("remote")'
144 $ hg merge -f --tool internal:merge3 'desc("remote")' 2>&1 | tee $TESTTMP/merge-output-1
145 local changed content1_missing_content1_content4-tracked which remote deleted
145 local changed content1_missing_content1_content4-tracked which remote deleted
146 use (c)hanged version, (d)elete, or leave (u)nresolved? u
146 use (c)hanged version, (d)elete, or leave (u)nresolved? u
147 local changed content1_missing_content3_content3-tracked which remote deleted
147 local changed content1_missing_content3_content3-tracked which remote deleted
@@ -217,7 +217,6 Merge with remote
217 warning: conflicts while merging missing_content2_missing_content4-untracked! (edit, then use 'hg resolve --mark')
217 warning: conflicts while merging missing_content2_missing_content4-untracked! (edit, then use 'hg resolve --mark')
218 18 files updated, 3 files merged, 8 files removed, 35 files unresolved
218 18 files updated, 3 files merged, 8 files removed, 35 files unresolved
219 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
219 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
220 [1]
221
220
222 Check which files need to be resolved (should correspond to the output above).
221 Check which files need to be resolved (should correspond to the output above).
223 This should be the files for which the base (1st filename segment), the remote
222 This should be the files for which the base (1st filename segment), the remote
@@ -780,3 +779,17 Re-resolve and check status
780 [1]
779 [1]
781 $ checkstatus > $TESTTMP/status2 2>&1
780 $ checkstatus > $TESTTMP/status2 2>&1
782 $ cmp $TESTTMP/status1 $TESTTMP/status2 || diff -U8 $TESTTMP/status1 $TESTTMP/status2
781 $ cmp $TESTTMP/status1 $TESTTMP/status2 || diff -U8 $TESTTMP/status1 $TESTTMP/status2
782
783 Set up working directory again
784
785 $ hg -q update --clean 2
786 $ hg --config extensions.purge= purge
787 $ python $TESTDIR/generate-working-copy-states.py state 3 wc
788 $ hg addremove -q --similarity 0
789 $ hg forget *_*_*_*-untracked
790 $ rm *_*_*_missing-*
791
792 Merge with checkunknown = warn, see that behavior is the same as before
793 $ hg merge -f --tool internal:merge3 'desc("remote")' --config merge.checkunknown=warn > $TESTTMP/merge-output-2 2>&1
794 [1]
795 $ cmp $TESTTMP/merge-output-1 $TESTTMP/merge-output-2 || diff -U8 $TESTTMP/merge-output-1 $TESTTMP/merge-output-2
General Comments 0
You need to be logged in to leave comments. Login now