Mercurial > hg
diff tests/test-merge-types.t @ 16255:ca5cc2976574 stable
merge: handle linear update to symlink correctly (issue3316)
This fixes a regression introduced by fcf66193b186. If no file-level
merge is needed, we can update flags directly, otherwise we have a
conflict to resolve in filemerge.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 13 Mar 2012 16:28:08 -0500 |
parents | efdcce3fd2d5 |
children | cb1475e7e5a2 |
line wrap: on
line diff
--- a/tests/test-merge-types.t Tue Mar 13 15:12:26 2012 -0500 +++ b/tests/test-merge-types.t Tue Mar 13 16:28:08 2012 -0500 @@ -70,3 +70,39 @@ > fi a has no flags (default for conflicts) +Update to link without local change should get us a symlink (issue3316): + + $ hg up -C 0 + $ hg up + $ hg st + +Update to link with local change should cause a merge prompt (issue3200): + + $ hg up -C 0 + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ echo data > a + $ HGMERGE= hg up -y --debug + searching for copies back to rev 2 + resolving manifests + overwrite: False, partial: False + ancestor: c334dc3be0da, local: c334dc3be0da+, remote: 521a1e40188f + a: versions differ -> m + preserving a for resolve of a + updating: a 1/1 files (100.00%) + couldn't find merge tool hgmerge + picked tool 'internal:prompt' for a (binary False symlink True) + no tool found to merge a + keep (l)ocal or take (o)ther? l + 0 files updated, 1 files merged, 0 files removed, 0 files unresolved + $ hg diff --git + diff --git a/a b/a + old mode 120000 + new mode 100644 + --- a/a + +++ b/a + @@ -1,1 +1,1 @@ + -symlink + \ No newline at end of file + +data + +