Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
16254:c7eef052c9e3 | 16255:ca5cc2976574 |
---|---|
68 > else | 68 > else |
69 > echo "a has no flags (default for conflicts)" | 69 > echo "a has no flags (default for conflicts)" |
70 > fi | 70 > fi |
71 a has no flags (default for conflicts) | 71 a has no flags (default for conflicts) |
72 | 72 |
73 Update to link without local change should get us a symlink (issue3316): | |
74 | |
75 $ hg up -C 0 | |
76 $ hg up | |
77 $ hg st | |
78 | |
79 Update to link with local change should cause a merge prompt (issue3200): | |
80 | |
81 $ hg up -C 0 | |
82 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
83 $ echo data > a | |
84 $ HGMERGE= hg up -y --debug | |
85 searching for copies back to rev 2 | |
86 resolving manifests | |
87 overwrite: False, partial: False | |
88 ancestor: c334dc3be0da, local: c334dc3be0da+, remote: 521a1e40188f | |
89 a: versions differ -> m | |
90 preserving a for resolve of a | |
91 updating: a 1/1 files (100.00%) | |
92 couldn't find merge tool hgmerge | |
93 picked tool 'internal:prompt' for a (binary False symlink True) | |
94 no tool found to merge a | |
95 keep (l)ocal or take (o)ther? l | |
96 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
97 $ hg diff --git | |
98 diff --git a/a b/a | |
99 old mode 120000 | |
100 new mode 100644 | |
101 --- a/a | |
102 +++ b/a | |
103 @@ -1,1 +1,1 @@ | |
104 -symlink | |
105 \ No newline at end of file | |
106 +data | |
107 | |
108 |