[Bug 3849] New: Mercurial deletes directory contents instead of link when using symbolic link on Windows
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Tue Mar 5 04:25:46 CST 2013
http://bz.selenic.com/show_bug.cgi?id=3849
Priority: normal
Bug ID: 3849
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: Mercurial deletes directory contents instead of link
when using symbolic link on Windows
Severity: bug
Classification: Unclassified
OS: Windows
Reporter: richard_newton at waters.com
Hardware: PC
Status: UNCONFIRMED
Version: 2.5.1
Component: Mercurial
Product: Mercurial
When using a symbolic link to a directory (available on Window Vista and
above), when doing a hg clean mercurial removes the linked to directory as well
as the link.
Steps to reproduce:
:: Create a test repository
mkdir TestRepo
cd TestRepo
hg init
mkdir TestFolder
echo "Hello" >> TestFolder\file.txt
hg commit -A -m "Initial"
:: Create a link then call clean
mklink /D mylink TestFolder
hg clean
After this I would expect mylink to be deleted but TestFolder should still
exist, instead TestFolder is also removed.
Equivalent in Linux works:
mkdir TestRepo
cd TestRepo
hg init
mkdir TestFolder
echo "Hello" >> TestFolder/file.txt
hg commit -A -m "Initial"
ln -s TestFolder/file.txt mylink
hg clean
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list