Mercurial > hg
diff tests/test-fetch @ 6206:0b6f12495276
fetch: switch the default parent used for a merge
This treats newly pulled changes as authoritative, and local changes as
the "satellite" changes.
The prior default behaviour is still available, via the --switch-parent
option.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 05 Mar 2008 09:10:45 -0800 |
parents | 86f5d8f608b7 |
children | 03b13d853dc6 |
line wrap: on
line diff
--- a/tests/test-fetch Mon Mar 03 21:48:43 2008 +0100 +++ b/tests/test-fetch Wed Mar 05 09:10:45 2008 -0800 @@ -24,6 +24,7 @@ hg clone c d hg clone c e +echo % should merge c into a hg --cwd c fetch -d '4 0' -m 'automated merge' ../a ls c @@ -37,3 +38,15 @@ echo '% fetch over http with auth (should be hidden in desc)' hg --cwd e fetch -d '5 0' http://user:password@localhost:$HGPORT/ hg --cwd e tip --template '{desc}\n' + +hg clone a f +hg clone a g + +echo f > f/f +hg --cwd f ci -d '6 0' -Amf + +echo g > g/g +hg --cwd g ci -d '6 0' -Amg + +echo % should merge f into g +hg --cwd g fetch --switch ../f