mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
1ce305a01e
This fixes problems mentioned in issue660 comments (unrelated to original issue) where directory was renamed, and symlink was added instead. In such situation addremove wasn't able to correctly detect that old files no longer here, but tried to add symlink (and failed due collision with old files).
16 lines
222 B
Bash
Executable File
16 lines
222 B
Bash
Executable File
#!/bin/sh
|
|
|
|
"$TESTDIR/hghave" symlink || exit 80
|
|
|
|
hg init a
|
|
cd a
|
|
|
|
echo '% directory moved and symlinked'
|
|
mkdir foo
|
|
touch foo/a
|
|
hg ci -Ama
|
|
mv foo bar
|
|
ln -s bar foo
|
|
echo '% now addremove should remove old files'
|
|
hg addremove
|