[issue516] can't revert a symbolic link pointing to a directory

Eric St-Jean mercurial-bugs at selenic.com
Tue Mar 13 12:47:39 CDT 2007


New submission from Eric St-Jean <esj at wwd.ca>:

A symbolic link which is pointing to a directory can't be reverted to what it
was pointing to in the parent (hg revert aborts with "abort: Is a directory").
To reproduce:

st-jean at cornwall:~/hg$ hg init test
st-jean at cornwall:~/hg$ cd test
st-jean at cornwall:~/hg/test$ mkdir target1 target2
st-jean at cornwall:~/hg/test$ ln -s target1 link
st-jean at cornwall:~/hg/test$ hg addremove
adding link
st-jean at cornwall:~/hg/test$ hg sta
A link
st-jean at cornwall:~/hg/test$ hg com -m "initial"
st-jean at cornwall:~/hg/test$ hg sta
st-jean at cornwall:~/hg/test$ rm -f link
st-jean at cornwall:~/hg/test$ ln -s target2 link
st-jean at cornwall:~/hg/test$ hg sta
M link
st-jean at cornwall:~/hg/test$ hg revert link
abort: Is a directory

----------
messages: 2875
nosy: wiswaud
priority: bug
status: unread
title: can't revert a symbolic link pointing to a directory

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue516>
____________________________________________________



More information about the Mercurial-devel mailing list