comparison tests/test-symlinks.t @ 19157:113681bbef9e

manifestmerge: local unknown, remote created: don't traverse symlinks To figure out what to do with locally unknown files, Mercurial attempts to read them if they exist. When an attempt is made to read a file that exists but traverses a symlink, Mercurial aborts. With this patch, we first ensure that the file doesn't traverse a symlink before opening it. This is fine because a file being "remote created" means the symlink doesn't exist remotely, which means it will be deleted in the apply phase.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 08 May 2013 14:11:01 -0700
parents 2cbd27f4f3c4
children 7a9cbb315d84
comparison
equal deleted inserted replaced
19155:0b3689a08df5 19157:113681bbef9e
158 158
159 $ hg addremove 159 $ hg addremove
160 adding bar/a 160 adding bar/a
161 adding foo 161 adding foo
162 removing foo/a 162 removing foo/a
163
164 commit and update back
165
166 $ hg ci -mb
167 $ hg up '.^'
168 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
169 $ hg up tip
170 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
171
163 $ cd .. 172 $ cd ..
164 173
165 == root of repository is symlinked == 174 == root of repository is symlinked ==
166 175
167 $ hg init root 176 $ hg init root